markwragg / Powershell-SlackBot

Powershell based Slack Bot using the Real Time Messaging API and WebSockets.
http://wragg.io/powershell-slack-bot-using-the-real-time-messaging-api/
46 stars 19 forks source link

Dependancy? #13

Closed jakorthuis closed 2 years ago

jakorthuis commented 2 years ago
> Install-Module -Name SlackBot 
> import-module SlackBot 
> invoke-slackbot -Token "xoxb-realtokenwent here" 
 Set-PSSlackConfig : The term 'Set-PSSlackConfig' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. 

Does your project depend on https://www.powershellgallery.com/packages/SlackBot/1.0.16 Thanks

markwragg commented 2 years ago

This project is SlackBot (what you've linked to in the PSGallery is the published version of this module). It has a dependency on a module called PSSlack: https://github.com/RamblingCookieMonster/PSSlack, which if you install and configure first will then make this module usable. I should make that clearer in the Readme.md really.

TBF It doesn't really need to have that dependency though, I just wrote it a long time ago when it was easier to use that for some messages IIRC. Tbh the whole project is merely supposed to represent a POC for others to use to write their own more full featured version if they want to interact with Slack via websockets.

If you want a more complete / usable project, I recommend you have a look at PoshBot: https://github.com/poshbotio/PoshBot

jakorthuis commented 2 years ago

Thanks so much!