spam settings - shinyfinder/chatot-smogon GitHub Wiki
Availability: Select Guilds
/spam settings
Example:
/spam settings
- Chatot: Manage Messages, Timeout- | Ban- | Kick Members (depending on selected punishment)
- Users: Ban Members
Summary: Configures Chatot's response to spam messages.
"Spam" is considered to be messages with the same content being posted to more than 1 channel in rapid succession (< 5 seconds). Forwarding a message will not trip this criteria; however, forwarding to multiple channels at once will. When spam is detected, Chatot will delete the offending messages automatically. This command allows you to configure additional actions by Chatot when it detects spam.
Running this command presents the user with a modal. Users are presented with multiple optional fields:
-
Punishment- The punishment to give to the offending member when they spam. Options are ban, kick, or timeout (1 hour). The offending messages will be deleted regardless of any selection (or lack thereof) for this field. -
Immune Roles- Members who have the selected roles will be ignored by the spam system (i.e. staff roles). -
Alert Channel- When spam is detected, Chatot will send an alert with the message content to the selected channel. This alert is designed to contain minimal info for space concerns, so additional info, like attachments, are handled by the normal logging functionality in your normal logging channel.- Due to technical limitations, I can't link you to those logs within these alerts, so you'll need to ctrl+f their user id or look at the timestamps in the logs if you want more info.
- Similarly, any message deletions will be attributed to 'self' deletes. One day maybe there'll be a solution for that.
-
Alert Roles- When spam is detected, ping these roles within theAlert Channel.
Remember that any automated system is best effort. It's always a good idea to double check that your desired outcome has occurred.