Javascript 如何让hubot列出当前campfire聊天室中的所有用户?
我有胡伯特(https://github.com/github/hubot)在篝火聊天室里跑步 我正在尝试制作一个脚本,显示聊天室中所有已登录的用户 默认的Javascript 如何让hubot列出当前campfire聊天室中的所有用户?,javascript,coffeescript,bots,hubot,campfire,Javascript,Coffeescript,Bots,Hubot,Campfire,我有胡伯特(https://github.com/github/hubot)在篝火聊天室里跑步 我正在尝试制作一个脚本,显示聊天室中所有已登录的用户 默认的hubot show users命令似乎找不到所有登录的用户 非工作伪码 module.exports = (robot) -> robot.respond /users$/i, (msg) -> for user in robot.room.users msg.respond user.nam
hubot show users
命令似乎找不到所有登录的用户
非工作伪码
module.exports = (robot) ->
robot.respond /users$/i, (msg) ->
for user in robot.room.users
msg.respond user.name + "is logged in"
尝试通过发送请求,它将列出房间内当前的所有用户