English 中文(简体)
检测用户何时离开或进入带有摇晃的频道
原标题:Detecting when a user leaves or enters a channel with hubot

我试图让Hubot在用户进入或离开频道时侦测到, 但到目前为止我一直无法找到任何与此事有关的信息。

有谁知道如何做到这一点吗?

提前感谢!

最佳回答

Xubot s logot 类具有 ent left 等功能,当 anyny 用户进入或离开房间时,会发出回电。回电需要一个 response ,该回电具有类型 Message 的属性 ,而该类型又具有类型 用户 的属性 < user 。 < 用户

module.exports = (robot) ->
   robot.enter (response) ->
     # at this point you can get the user s name with:
     # response.message.user.name
     # works the same for robot.leave

然而,“https://github.com/nandub/hubot-irc/pull/26>似乎,因为IRC对巴波特的适应器目前没有发出使这些功能发挥作用所需的信息。

问题回答

暂无回答




相关问题
"NOTICE AUTH" notifications when connecting to IRC server

As a learning exercise, I m writing a Python program to connect to a channel on an IRC network, so I can output messages in the channel to stdout. I m using asynchat and manually sending the protocol ...

Android NDK future extended support for C++

Is there any info about the future of extending the safe C++ header list in the NDK (or maybe some hints to what might be safe to use) ? Or how soon we can expect the next NDK update? Also will there ...

Plugin permissions in an IRC Bot

My friend and I are writing an C# IRC Bot that will allow users to extend it s capabilities via plugins. We need it so that each command will be able to have its own permissions. So that only a user ...

Threading / Linq Class list Issue

I ve written a very complex multi-server IRC bot recently, and have encountered an issue.. I have stripped down the code as much as I could which can be viewed here. My issue is that when I call the ...