我正在尝试将Hubot与Slack集成并遵循步骤as mentioned here,但我没有收到任何连接消息。也没有错误。什么可能导致这种行为?
PS C:\Users\myuserid\Projects\mybots> bin/hubot -a slack
npm WARN hubot-help@0.2.2 requires a peer of coffee-script@^1.12.6 but none was installed.
up to date in 2.764s
warn: SlackDataStore is deprecated and will be removed in the next major version. See project documentation for a migration guide.
warn: SlackDataStore is deprecated and will be removed in the next major version. See project documentation for a migration guide.
答案 0 :(得分:1)
嘿,我想您在run命令中错过了API令牌密钥。该命令应该是。
HUBOT_SLACK_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ./bin/hubot --adapter slack
如果进展顺利,您会看到类似这样的消息。
INFO Connected to Slack RTM
您可以遵循this well explained tutorial将Hubot与Slack集成。