【问题标题】:Hubot integration with SlackHubot 与 Slack 的集成
【发布时间】:2018-01-22 16:09:41
【问题描述】:

我正在尝试将 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.

【问题讨论】:

  • 我认为这不是您的问题,因为这些消息都不应该导致机器人连接失败。它们都是 npm 警告,可以放心地忽略。

标签: slack hubot


【解决方案1】:

嘿,我认为您在运行命令中错过了 API 令牌密钥。命令应该是。

HUBOT_SLACK_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ./bin/hubot --adapter slack

如果进展顺利,您会看到这样的消息。

 INFO Connected to Slack RTM

您可以关注 this well explained tutorial 将 Hubot 与 Slack 集成。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-01-21
    • 1970-01-01
    • 1970-01-01
    • 2017-01-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多