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

!ops command to ping currently online +o-and-above #91

Closed
jesopo opened this issue Jul 9, 2019 · 0 comments
Closed

!ops command to ping currently online +o-and-above #91

jesopo opened this issue Jul 9, 2019 · 0 comments
Assignees

Comments

@jesopo
Copy link
Member

jesopo commented Jul 9, 2019

I'd like to have a command that collects the nicknames of all the people in the current channel that have +o or above and says them in-channel to ping admins (for use in e.g. spam floods)

this should be an opt-in feature using a BoolSetting, an example of which can be seen here:
https://github.com/jesopo/bitbot/blob/51bed87b6019911b9471a2273c81dade70570945/modules/sed.py#L10-L11

you need to get a list of all users in a channel:
https://github.com/jesopo/bitbot/blob/51bed87b6019911b9471a2273c81dade70570945/src/IRCChannel.py#L20

and you need to check they have +o-or-above:
https://github.com/jesopo/bitbot/blob/51bed87b6019911b9471a2273c81dade70570945/src/IRCChannel.py#L198

@jesopo jesopo self-assigned this Jul 9, 2019
@jesopo jesopo closed this as completed in 4f781f3 Jul 9, 2019
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

1 participant