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

Glob kick command #291

Merged
merged 11 commits into from
Jun 15, 2022
Merged

Glob kick command #291

merged 11 commits into from
Jun 15, 2022

Conversation

jae1911
Copy link
Contributor

@jae1911 jae1911 commented May 7, 2022

This pull requests adds for glob support in the !mjolnir kick command.

Example

!mjolnir kick @*:domain.tld <reason> --force

This command will kick every user having a mxid matching domain.tld.
You can also still kick a particular user:

!mjolnir kick @user:domain.tld <reason>

Tests:

Tested on the Furry Tech room (vRGLvqJYlFvzpThbxI:matrix.org) after a spam wave.
It kicked over 13k bots in a matter of hours without putting too much strain on the homeserver.
For instance, this command was matching @spam*:
image

Signed-off-by: Jae Lo Presti [email protected]

@jesopo jesopo self-assigned this May 9, 2022
@Yoric
Copy link
Contributor

Yoric commented May 17, 2022

@jae1911 Thanks for the PR!

I'm currently working on a PR that will let us background this to reduce the impact on servers, I'll see if we can mix both if that's alright with you.

@jae1911
Copy link
Contributor Author

jae1911 commented May 17, 2022

@jae1911 Thanks for the PR!

I'm currently working on a PR that will let us background this to reduce the impact on servers, I'll see if we can mix both if that's alright with you.

Sounds good to me!

@Gnuxie Gnuxie merged commit a876a05 into matrix-org:main Jun 15, 2022
Gnuxie added a commit that referenced this pull request Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants