Closed tanookiben closed 9 years ago
Got past the issue above (fresh npm install
), but now I'm running into a new error:
➜ slack-poker git:(master) ✗ node src/main.js
[Mon Jul 06 2015 00:58:12 GMT-0400 (EDT)] INFO Connecting...
events.js:87
throw Error('Uncaught, unspecified "error" event.');
^
Error: Uncaught, unspecified "error" event.
at Error (native)
at Client.emit (events.js:87:13)
at Client._onLogin (/home/ben/apps/slack-poker/node_modules/slack-client/src/client.js:74:14)
at /home/ben/apps/slack-poker/node_modules/slack-client/src/client.js:2:59
at IncomingMessage.<anonymous> (/home/ben/apps/slack-poker/node_modules/slack-client/src/client.js:670:22)
at IncomingMessage.emit (events.js:129:20)
at _stream_readable.js:908:16
at process._tickCallback (node.js:355:11)
My mistake, I'm stupid T_____T the bot happened to be disabled in the Slack admin panels
@tanookiben hello our poker bot seems "away" in the user list
how did you enabled it?
I'm getting this error, too, but my bot is enabled.
Argh... my issue was because I had a typo in my token. Copy and paste fail =/
@quentinlebras if you're seeing this error, first of all... make sure your token is correct!
If it is a matter of being disabled, to enable it: go to the admin page for services (https://limitbreak.slack.com/services), click on Bots and then click on your bot and there should be an enable/disable button in the top right corner.
If the bot isn't connected to something (i.e. if the server isn't running), it will appear as away. Once the server is successfully working, it'll show up as active.
Here's the output of running
node src/main.js
afternpm install