【问题标题】:Using hubot to have a converstion with a user使用hubot与用户对话
【发布时间】:2016-03-24 16:04:16
【问题描述】:

我希望创建一个 slackbot,当它被问到某个问题时,它会回答一个问题并听取该特定问题的答案,但只有当它被问到时。

例如

User: @Hubot Please add a link to youtube
Hubot: @User Can you please post a link to youtube
User: @Hubot youtube.com
Hubot: @User A link to youtube has been added

但是我不hubot总是监听要发布到它的url,我只希望它在被要求添加一个url后监听一个url。如果 url 没有发送到 Hubot,一定时间后,Hubot 会超时。

例如

User: @Hubot Please add a link to youtube
Hubot: @User Can you please post a link to youtube
Hubot: @User Timeout: 1min url not added, you will need to add link to youtube again to save

计划是将网站名称和 url 保存到大脑中,当它要求网站时,hubot 会发布 url。这只是我遇到问题的对话部分。

【问题讨论】:

    标签: coffeescript hubot slack


    【解决方案1】:

    几周前,我为我们的 Hubot 研究了这个功能,但还没有回过头来实际构建它。这是我计划使用的模块:

    https://github.com/lmarkus/hubot-conversation

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-24
      • 2015-04-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多