3
我有hubot(https://github.com/github/hubot)在篝火聊天室中運行。如何獲得hubot列出當前篝火聊天室中的所有用戶?
我試圖做一個腳本,顯示聊天室中的所有登錄用戶。
默認的hubot show users
命令似乎無法找到所有登錄的用戶。
非工作僞
module.exports = (robot) ->
robot.respond /users$/i, (msg) ->
for user in robot.room.users
msg.respond user.name + "is logged in"