【发布时间】: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