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
Ban multiple users in a single message #24
Comments
Not sure how useful would it be with usernames The Engine has that... kinda: https://github.com/lkd70/the-engine/blob/943bb1aa0b02daaf0476238e1b4236ef7f950274/plugins/ban.js#L37-L50 |
We settled on implementing batch ban as a separate command,
We need to accept ids, we could accept usernames, but we shouldn't bother with inline mentions, at least not initially. I guess we kind of agreed on separating ban reason from ids by newline, there's no one opposing that.
|
It's impossible to batchban in 1 Mongo / nedb query, due to upsert only inserting up to 1 record, only if no record matched. The best workaround I came up with would be to try to insert a dummy |
This is a problem is because we don't want to have a situation where some of the bans succeed and others fail? |
I think it would be fine if the bot just listed the ones that failed (if any) |
I think I'll start with naive implementation |
The
/ban
command can take multiple usernames as parameters to ban multiple users at the same time. Could be useful during a flood.Example implementation:
The text was updated successfully, but these errors were encountered: