Overview & Architecture
Server Protection & Anti-Raid is an automated real-time security shield compiled in Rust. It continuously monitors incoming messages and join spikes to block spam floods, external Discord invites, unauthorized links, and coordinated raid waves with instant message cleanup and automatic timeouts.
- Automated anti-spam with message cleanup and instant timeout
- Anti-Discord-Invite filter with optional full link blocking
- Anti-Raid join burst detection with instant alert & lockdown mode
- Automatic bypass for admins and a configurable Whitelist role
- Real-time alert embeds powered by compiled Rust (~16 MB RAM)
Included Slash Commands
All commands register automatically as native Discord slash commands when your bot container starts.
| Command | Description | Access |
|---|---|---|
/antiraid <on|off> |
Enable or disable automated join-raid detection and mitigation. | Staff |
/whitelist <add|remove> <user> |
Exempt trusted admins or partner bots from automated filters. | Staff |
/lockdown <on|off> |
Immediately lock or restore public community channels during an active raid. | Staff |
/antilink <on|off> |
Toggle automatic blocking of external Discord invites and URLs. | Staff |
How to Deploy in 60 Seconds
- Create a Discord bot application and enable Message Content Intent and Server Members Intent.
- Click 1-Click Deploy, paste your token, Alert Log Channel ID, and customize spam/invite sensitivity.
- Ensure the bot role sits above regular members so it can timeout raiders immediately.
Frequently Asked Questions
Can Staff bypass the anti-link and anti-spam rules?
Yes — Administrators and whitelisted users are automatically exempted so staff can post links freely.