You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
and send a private message to bot in slack, the console message is:
ConnectedtoFOOasmcbot/Users/user/src/simple/index.js:16channel.send(`Hello to you too, ${user.name}!`)^TypeError: channel.sendisnotafunctionatbot.respondTo(/Users/user/src/simple/index.js:16:11)atRTMClient.Bot.slack.on(/Users/user/src/simple/Bot.js:47:11)atRTMClient.emit(/Users/user/src/simple/node_modules/eventemitter3/index.js:116:35)atRTMClient.emit(/Users/user/src/simple/node_modules/@slack/client/lib/clients/client.js:86:39)atRTMClient._handleWsMessageViaEventHandler(/Users/user/src/simple/node_modules/@slack/client/lib/clients/rtm/client.js:447:10)atRTMClient.handleWsMessage(/Users/user/src/simple/node_modules/@slack/client/lib/clients/rtm/client.js:401:10)atWebSocket.wrapper(/Users/user/src/simple/node_modules/lodash/index.js:3095:19)atemitTwo(events.js:106:13)atWebSocket.emit(events.js:194:7)atReceiver.ontext(/Users/user/src/simple/node_modules/ws/lib/WebSocket.js:841:10)at/Users/user/src/simple/node_modules/ws/lib/Receiver.js:536:18atReceiver.applyExtensions(/Users/user/src/simple/node_modules/ws/lib/Receiver.js:371:5)at/Users/user/src/simple/node_modules/ws/lib/Receiver.js:508:14atReceiver.flush(/Users/user/src/simple/node_modules/ws/lib/Receiver.js:347:3)atReceiver.finish(/Users/user/src/simple/node_modules/ws/lib/Receiver.js:541:12)atReceiver.expectHandler(/Users/user/src/simple/node_modules/ws/lib/Receiver.js:499:31)
Product's versions...
node --version
v7.10.0
Any idea?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi all,
I am trying to reproduce the code example from this repo:
After:
$ SLACK_TOKEN="xxxxxxx-xxxxxxxxxxxxxxxxx" nodemon index.js
and send a private message to bot in slack, the console message is:
Product's versions...
Any idea?
Thanks!
The text was updated successfully, but these errors were encountered: