4

I've got hubot (https://github.com/github/hubot) running in a campfire chatroom.

I'm trying to make a script which shows all of the logged in users in the chatroom.

The default hubot show users command doesn't seem to find all of the logged in users.

non-working pseudocode

module.exports = (robot) ->    
  robot.respond /users$/i, (msg) ->
    for user in robot.room.users
        msg.respond user.name + "is logged in"
k107
  • 15,882
  • 11
  • 61
  • 59

1 Answers1

1

Try to send request via Campfire room API, it will list all the users currently inside the room.

Larry Cai
  • 55,923
  • 34
  • 110
  • 156