Closed AdminTurnedDevOps closed 4 years ago
Sorry, this is because its assuming you would also have the PSSlack module installed, which it can use as another way to send messages in to slack. You can get it here: https://github.com/RamblingCookieMonster/PSSlack
I should probably make that optional.
No worries! Thank you. I see that module may compliment your module well. Maybe in the instructions you can put in that the PSSlack module is required as well. Thanks for the assistance :).
Still getting this error unfortunately:
VERBOSE: I am
Exception calling "ConnectAsync" with "2" argument(s): "Value cannot be null.
Parameter name: uri"
At C:\Program Files\WindowsPowerShell\Modules\SlackBot\1.0.59\Public\Invoke-SlackBot.ps1:21 char:13
+ $Conn = $WS.ConnectAsync($RTMSession.URL, $CT)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentNullException
I tried the verification token, client token, and Client ID to confirm. Single quotes, double quotes, and no quotes around the tokens. Variable to hold the tokens and no variable. For some reason it's still coming up as null. I distributed the app/bot to confirm it was live.
Hello,
Currently getting the following error when I try to run Invoke-SlackBot -Token $Token
I've tried the following; 1) Removing the module 2) Re-installing the module with the -force param 3) Single quotes and double quotes around my token 4) Tried client ID, Client Secret, and Verification Token from Slack (I know it's only the token, but I wanted to try it and see if I would get a different error). 5) Tried in ISE running as admin and VSCode
Tried again with -Verbose and got the following: VERBOSE: GET https://slack.com/api/rtm.start?token=tokennumber with 0-byte payload VERBOSE: received -1-byte response of content type application/json; charset=utf-8 VERBOSE: Creating C:\SlackConfig\log.txt. VERBOSE: I am VERBOSE: Closing websocket
Any ideas?