Laggrons-Dumb-Cogs icon indicating copy to clipboard operation
Laggrons-Dumb-Cogs copied to clipboard

[Request] Automod to include antimention spam

Open Skyridr opened this issue 4 years ago • 1 comments

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)

Skyridr avatar Jul 02 '20 08:07 Skyridr

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 avatar Jul 02 '20 09:07 laggron42