[英]What is the ideal way to listen for messages from Hubot scripts?
I want to create a hubot script that captures messages within a multiuser chat and record them including hubot. 我想创建一个hubot脚本,该脚本可以捕获多用户聊天中的消息并记录包括hubot在内的消息。 The problem is that hubot does not hear itself.
问题是hubot听不到声音。 It doesn't appear that adapters emit an event whenever a message is sent, so is there a recommended approach to listening to hubot messages?
似乎每当发送消息时适配器都不发出事件,那么有没有建议的方法来监听Hubot消息?
We're using Hubot with HipChat, and have resorted to posting directly to HipChat's API when we want the bot to listen. 我们将Hubot与HipChat结合使用,并且当我们希望机器人监听时,已采取直接发布到HipChat的API的方式。 Not ideal, but works.
不理想,但是可行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.