Advanced Discord Anti-Nuke Protection Bot that stops attacks before they begin. Sub-0.35 second response time. FULL CHANNEL RESTORE including all messages, attachments, embeds, reactions, mentions, channel settings, permission overwrites, forum channels with ALL posts/tags/messages, server emojis, stickers, member nicknames, server boosts, and server settings.
ONLY OWNER CAN USE COMMANDS - even admins are ignored.
TRUSTED users can also use commands (added via !trust).
EXCLUDED users are EXEMPT from protection but CANNOT use commands.
Server owner is ALWAYS exempt from all protective actions. Owner cannot be untrusted or unexcluded.
ANY deletion (general/text, forum, voice, stage, category) = full instant restore (settings + messages) + immediate 24-hour timeout, from the 1st offense, every single time - no attempt counter, no warning period.
Any single or bulk message deletion = restore via webhook + immediate 24-hour timeout from 1st offense. Messages restored with content, attachments, embeds, author name/avatar.
FULL BACKUP: All roles with permissions, colors, and icons. All channels with settings and messages. ALL Forum Channels with EVERY post, tag, and message. All server emojis (animated and static). All server stickers. All member nicknames. All member roles. Server boosts. Server settings.
FULL RESTORE: Everything restored instantly including all messages with attachments, embeds, reactions, and all mentions (@everyone, @here, @user, #channel, @role).
Uses asyncio.Lock per channel and per guild to prevent race conditions and 429 rate limit storms. Bundles all permission overwrites into a single API call during restoration, avoiding the "20k second Cloudflare ban".
First offense: Warning + revert only. No timeout, no ban.
Second+ offense: Revert + full punishment (timeout or ban).
Reset: After 10 minutes of inactivity per violation type.
Separate counters per violation kind: channel_delete, role_update, webhook_mass_create, channel_update, invite_create, invite_delete, guild_update, member_kick, member_ban, mass_timeout, member_role_removal, member_role_grant.
Webhook violations escalate: 5min, 10min, 15min... capped at 60min for repeat offenders. Cumulative counter NEVER resets automatically.
Full backup and restore of ALL forum channels with EVERY post, tag, and message. All threads, messages, and metadata preserved.
Backup and restore all server emojis (animated and static) with roles and settings. All server stickers with descriptions and tags.
Backup and restore all member nicknames, all member roles, and server boosts. Roles restored with all settings, colors, permissions, and reassigned to members.
Detects and neutralizes threats in under 0.35 seconds. By the time a Discord event fires, the bot has already analyzed the action, identified the actor, and prepared the revert.
Monitors all audit log events in real-time. Channel updates, role changes, permission edits, webhook creations, invite modifications — everything is tracked before damage spreads.
Channel deletion? Message deletion? Immediate 24-hour timeout from the very first offense. No warnings, no grace period, no exceptions. The attack stops instantly.
Before any punishment, the bot strips Administrator roles and any role above the bot's top role. Even server admins cannot dodge punishment through role hierarchy.
Rolling cache of 300 messages per channel with attachments downloaded locally. When a message is deleted, it's restored instantly via webhook — preserving content, embeds, and author identity.
Uses asyncio.Lock per channel and per guild to prevent race conditions. When an attacker spams edits, the bot collapses all changes into a single revert cycle — no thrashing, no rate limits.
Levenshtein algorithm with 82% similarity threshold detects spammers who slightly modify messages. 7 near-identical messages = instant wipe of all messages AND all webhooks in that channel.
New invites are blocked instantly. Deleted invites are auto-replaced with fresh codes. 4+ attempts = immediate 5-minute timeout. Your server's invite integrity stays intact.
Unauthorized kick? Bot generates a rejoin invite and DMs the victim. Unauthorized ban? Victim is unbanned immediately. Both actions trigger a 7-day timeout for the attacker.
Repeat offenders face escalating consequences: 5min, 10min, 15min... capped at 60min. Webhook violations use cumulative counters that NEVER reset automatically.
Complete backup of roles, channels, permissions, messages, emojis, stickers, nicknames, and boosts. One command restores everything — even after a full server nuke.
Bundles all permission overwrites into a single API call during restoration. Avoids the "20k second Cloudflare abuse ban" that plagues other bots. 30 overwrites = 1 request, not 31.