,antispam
message rate and duplicate flood detection
Syntax
,antispam <rate|duplicate|escalation|settings|ignore|list|reset>Slash
/antispam <subcommand>Example
,antispam rate on ++threshold 6 ++window 5 ++punish timeout<required> · [optional]
- Permission
- Server Owner
- Cooldown
- None
- Right-click menu
- None
- Related guide
- Flood protection
Forms
rate <on|off> [++punish <punishment> ++threshold <number> ++window <seconds> ++duration <5m>]duplicate <on|off> [++punish <punishment> ++threshold <number> ++window <seconds>]escalation <on|off> [++punish <punishment> ++days <number>]settings [++purge <on|off> ++commands <on|off> ++duration <5m>]ignore <add|remove|list> [#channel]listresetSubcommands
Prefix subcommands7 subcommands, A to Z
,antispam duplicate <on/off> [++punish <punishment> ++threshold <number> ++window <seconds>]punishes users who repeat the same message
,antispam duplicate on ++threshold 4 ++window 30 ++punish timeout
,antispam escalation <on/off> [++punish <punishment> ++days <number>]punishes repeat spammers more harshly
,antispam escalation on ++punish ban ++days 7
aka escalate#antispam-escalation
,antispam ignore <add/remove/list> [#channel]exempts a channel or category from anti-spam
,antispam ignore add #spam
aka exempt#antispam-ignore
,antispam rate <on/off> [++punish <punishment> ++threshold <number> ++window <seconds>]punishes users who send messages too fast
,antispam rate on ++threshold 6 ++window 5 ++punish timeout
,antispam resetclears all anti-spam configuration for this server
,antispam reset
aka clear#antispam-reset
,antispam settings [++purge <on/off> ++commands <on/off> ++duration <5m>]burst purge, command exclusion and timeout length
,antispam settings ++purge on ++commands on
aka set, config#antispam-settings
Slash commands 7 leaves, grouped the way Discord groups /antispam
<required> · [optional]. Parameters come from Discord’s own registered commands; a blank default means the bot states none.
/antispam, top level7 leaves
/antispam ratePunish a user who sends too many messages too fast
/antispam ratestate (required)punishthresholdwindowduration| Parameter | Type | Default | Detail |
|---|---|---|---|
staterequired | String | — | Turn rate detection on or offOn · Off |
punish | String | timeout | What to do when it tripsWarn · Timeout · Mute · Jail · Kick · Softban · Ban |
threshold | Integer | 6 | Messages needed to trip it(3–50) |
window | Integer | 5 | Seconds they must arrive within(2–120) |
duration | String | 5m | Timeout length, e.g. 5m |
/antispam duplicatePunish a user who repeats the same message
/antispam duplicatestate (required)punishthresholdwindow| Parameter | Type | Default | Detail |
|---|---|---|---|
staterequired | String | — | Turn duplicate detection on or offOn · Off |
punish | String | timeout | What to do when it tripsWarn · Timeout · Mute · Jail · Kick · Softban · Ban |
threshold | Integer | 4 | Identical messages needed to trip it(3–50) |
window | Integer | 30 | Seconds they must arrive within(2–120) |
/antispam escalationPunish repeat offenders more harshly
/antispam escalationstate (required)punishdays| Parameter | Type | Default | Detail |
|---|---|---|---|
staterequired | String | — | Turn escalation on or offOn · Off |
punish | String | ban | What a repeat offender getsWarn · Timeout · Mute · Jail · Kick · Softban · Ban |
days | Integer | 7 | How far back a prior offence counts(1–90) |
/antispam settingsPurge, command exclusion and timeout length
/antispam settingspurgecommandsduration| Parameter | Type | Default | Detail |
|---|---|---|---|
purge | Boolean | true | Delete the whole burst, not just one message |
commands | Boolean | true | Ignore messages that are bot commands |
duration | String | — | Timeout length, e.g. 5m |
/antispam ignoreExempt a channel or category from anti-spam
/antispam ignoreaction (required)channel| Parameter | Type | Default | Detail |
|---|---|---|---|
actionrequired | String | — | Add, remove, or list exempt channelsAdd · Remove · List |
channel | Channel | — | The channel or category to exempt (not needed for list) |