Automated threat detection and mitigation for Discord servers, built as a plugin for Advanced Discord Bot.
| Module | Description | Default |
|---|---|---|
| Anti-Raid | Detects mass joins and auto-locks the server | Off |
| Anti-Spam | Detects duplicate messages and mass mentions | Off |
| Anti-Link | Deletes messages containing URLs or Discord invites | Off |
| Anti-Alt | Blocks or flags accounts below a minimum age | Off |
All modules are off by default. Enable each one independently per guild.
# In your ADB plugins directory
npm install adb-plugin-aegisThen add "adb-plugin-aegis" to your ADB plugin list.
- Manage Channels (for lockdown)
- Kick Members / Ban Members (for anti-alt/spam enforcement)
- Moderate Members (timeout, for spam mute)
- Manage Messages (to delete spam/links)
- Set Verification Level (for raid lockdown)
- Send Messages + Embed Links (for log channel output)
All /antimod subcommands require Administrator permission.
/antiraid lockdown requires Moderate Members permission.
/antimod setup Show overview and module list
/antimod status Show all module states and current settings
/antimod log #channel Set the channel for Aegis log embeds
/antimod raid on
/antimod raid off
/antimod raid threshold <joins> <seconds>
— e.g. /antimod raid threshold 10 10 (10 joins in 10s)
When the threshold is hit, Aegis automatically:
- Sets server verification to HIGH
- Denies
SendMessagesfor@everyonein all text channels - Logs to the configured log channel
To lift manually:
/antiraid lockdown
/antimod spam on
/antimod spam off
/antimod spam action <warn|mute|kick|ban>
— "mute" applies a 10-minute timeout (default)
Triggers on N identical messages in a window, or a single message with N+ mentions.
/antimod link on
/antimod link off
/antimod link whitelist <domain>
— e.g. /antimod link whitelist github.com
Discord invite links (discord.gg/...) are always blocked when the module is on, regardless of the whitelist.
Whitelisted domains are stored per guild and persist across restarts.
/antimod alt on
/antimod alt off
/antimod alt age <days> — minimum account age (default: 7 days)
Actions:
- flag (default) — logs the join to the log channel; member is not removed
- kick — immediately kicks the member with a reason
npm install
npm testTests run without a real Discord connection or database (in-memory mocks).
MIT