I am trying to make Hubot detect when a user enters or leaves a channel, but so far I have been unable to actually find ANY information pertaining to this.
Does anyone have any ideas of how to do this? 🙂
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hubot’s
Robotclass has functionsenterandleavethat will fire a callback you give when any user enters or leaves the room. That callback takes aResponse, which has a propertymessageof typeMessage, which in turn has a propertyuserof typeUser.However, it appears that the IRC adapter for hubot doesn’t currently fire the messages needed to get those functions to work.