-
Notifications
You must be signed in to change notification settings - Fork 6
Description
It is a common enough occurence in our server of users (both recently joined and not) to spam our many channels with some scam message. While the AutoMod catches some of them, there are some that get through that filter.
I propose a module (connected to the moderation module) that implements multi-channel spam detection. Essentially, it will track the sent messages over the past few seconds (or minutes) made by all users, and use a sliding window with configurable thresholds to determine multi-channel spam. (As an example, it may flag a user for multi-channel spam if a user posts messages within the last 5 seconds in 3 different channels.)
When it detects multi-channel spam, the user is timed out for a configurable length of time and an automated alert is sent to a preconfigured channel. That alert contains the identity of the user (name, ID, avatar), links to the offending messages, and buttons to (a) ignore the alert, (b) un-timeout the user (for false positives), and (c) kick/ban the user and purge their messages.