简体   繁体   English

如何让hubot列出当前篝火聊天室中的所有用户?

[英]How do I get hubot to list all the users in the current campfire chatroom?

I've got hubot (https://github.com/github/hubot) running in a campfire chatroom. 我在篝火聊天室里运行了hubot(https://github.com/github/hubot)。

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. 默认的hubot show 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"

尝试通过Campfire room API发送请求,它将列出当前房间内的所有用户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Discord.js:如何让所有对带有特定表情符号的消息做出反应的用户,然后将用户列表设置为变量? - Discord.js: how do I get all the users who react to a message with a specific emoji, then set the list of users to a variable? 如何在我的 node.js 聊天室中播放声音? - How do I play sound in my node.js chatroom? 如何获取所有GlobalEventHandlers的列表? - How do I get a list of all GlobalEventHandlers? 如何从Json API获取用户列表? - How do I get a list of users from the Json API? 如何在不向每条消息添加hubot的情况下访问hubot? - How can I access hubot without adding hubot with each message? 我如何获得所有用户的所有物品 - how i get all items of all users 我现在如何获取当前解析的所有数据,仅获取当前用户的“结果” - How do i retrieve just the current users “results” right now i getting all of the data i have in parse Firebase:获取当前聊天室(或任何抽象资源)中的用户数量 - Firebase: get the amount of users currently in a chatroom (or any abstract resource) 如何获取用户库中所有艺术家的列表? - How do I get a list of all artists in a user's library? 如何获取所有计算属性的列表? - How do I get a list of all computed properties?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM