Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an API for listing users in a room/channel #742

Open
bfirsh opened this issue Aug 12, 2014 · 8 comments
Open

Add an API for listing users in a room/channel #742

bfirsh opened this issue Aug 12, 2014 · 8 comments

Comments

@bfirsh
Copy link

bfirsh commented Aug 12, 2014

This would be really helpful for scripts that address all users, check whether a user is in a channel, etc.

@bfirsh bfirsh changed the title Provide an API for listing users in a room/channel Add an API for listing users in a room/channel Aug 12, 2014
@technicalpickles
Copy link
Member

I'd imagine this would be implemented like a bunch of other methods on robot, basically it'd delegate to the adapter:

  usersForRoom: (room) ->
    @adapter.usersForRoom user

You can also get pretty far by getting a listing of each room at startup, then having a robot.enter and robot.leave to update the running state.

@stale
Copy link

stale bot commented Aug 20, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@strugee
Copy link
Contributor

strugee commented Aug 20, 2017

This is a pretty important enhancement and should stay open?

@stale stale bot removed the stale label Aug 20, 2017
@stale
Copy link

stale bot commented Nov 18, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Nov 18, 2017
@strugee
Copy link
Contributor

strugee commented Nov 19, 2017

Seriously?

@stale stale bot removed the stale label Nov 19, 2017
@palmerabollo
Copy link

Any workarounds to get the list of users in a specific channel?

@raucao
Copy link

raucao commented Apr 25, 2018

It seems to be like at the moment a user object in the brain can only store a single room, so e.g. the IRC adapter just overwrites the user data when a user is present in multiple rooms (with the last one it sees). Also, there's doesn't seem to be an API for removing user info, but only for adding it.

I'm currently implementing Web Push notifications for people offline/away users, and having up-to-date and complete data about who's online in which room would make this both much easier and more efficient, as well as compatible with not just the one or two adapters I'll hack it into now.

@NakamotoSatoshi10
Copy link

NakamotoSatoshi10 commented Aug 7, 2021

내 능력을 나도 잘모르겠다. 당신은 해커인가?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants