简体   繁体   English

侦听来自Hubot脚本的消息的理想方法是什么?

[英]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.

相关问题 从自定义视图与其所在的活动进行通信的正确方法是什么? - What is the right way to communicate from a custom View to the Activity in which it resides? 从BizTalk 2006(而不是R2)连接到Oracle DB的最佳方法是什么? - What's the best way to connect to an Oracle DB from BizTalk 2006 (not R2)? 收听列表​​视图中的单击按钮 - Listen to click on button in listview 在Android上使用适配器的最佳方法是什么? - What's the best way to use Adapters on Android? 在 Recycleview 上处理大量数据的最佳方法是什么 - What is the Best way to handle a lot of data on a Recycleview 什么是在Android中做多个列表视图的最佳方法? - What is the best way to do multiple listviews in android? 更改ListView中所有项目的可绘制对象的最佳方法是什么 - What is the best way to change drawable of all item in ListView 什么是更好的方法,将适配器保持为活动的内部类别或外部? - What is the better way, keeping adapter as an inner class of activity or outside? 有没有办法从其适配器重新加载片段? - Is there a way to reload a fragment from its adapter? 通知RecyclerView适配器有关不可见项的更改的正确方法是什么? - What's the proper way of notifying a RecyclerView adapter about changes in non-visible items?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM