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

[Request] Automod to include antimention spam #97

Open
Skyridr opened this issue Jul 2, 2020 · 1 comment
Open

[Request] Automod to include antimention spam #97

Skyridr opened this issue Jul 2, 2020 · 1 comment
Labels
Cog: WarnSystem An issue or a PR for the Warnsystem cog Status: Pending Waiting for assignment and validation Type: Suggestion Addition idea for a cog

Comments

@Skyridr
Copy link

Skyridr commented Jul 2, 2020

Would be nice if there's an anti-mention spam feature within automod to take action if people use a certain amount of mentions (like over 5) in a single or multiple lines.

EG:

[User] @Mention1 @Mention2 @Mention3 @mention4 @mention5

^ Warn/kick or ban

OR

[User] @mention 1
New line: @Mention 2
New line: @Mention 3
New line: @Mention 4
New line: @Mention 5

^ Would also warn/kick/ban the user. Depending on how the user is spamming mention.

So in short, take action in the amount the user is mentioning someone with a short amount of time. (like 5 mention within 5 seconds)

@laggron42
Copy link
Owner

laggron42 commented Jul 2, 2020

Right now this can be done with a Regex. A dedicated, easier setting could be added but since this is already possible this won't be high priority.

This regex expression can detect a mention:

<@!?[0-9]{15,21}>

With a counter, you can make it detect 5 mentions or more in a message:

(<@!?[0-9]{15,21}>.*?){5,}

@laggron42 laggron42 added Type: Suggestion Addition idea for a cog Cog: WarnSystem An issue or a PR for the Warnsystem cog labels Jul 2, 2020
@laggron42 laggron42 mentioned this issue Sep 1, 2020
12 tasks
@laggron42 laggron42 linked a pull request Sep 1, 2020 that will close this issue
12 tasks
@laggron42 laggron42 added the Status: Pending Waiting for assignment and validation label Dec 17, 2020
@laggron42 laggron42 added this to the WarnSystem 1.4 milestone Dec 17, 2020
@laggron42 laggron42 removed a link to a pull request Dec 29, 2021
12 tasks
@laggron42 laggron42 removed this from the WarnSystem 1.4 milestone May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cog: WarnSystem An issue or a PR for the Warnsystem cog Status: Pending Waiting for assignment and validation Type: Suggestion Addition idea for a cog
Projects
None yet
Development

No branches or pull requests

2 participants