Anti-Nuke Protection
Squint's anti-nuke protection safeguards your server against malicious attacks that aim to destroy or disrupt your server. It detects and responds to rapid, destructive actions like mass channel/role deletions, mass bans, and malicious bot additions.
Quick Start (5 Minutes)
Run
;antinuke enableSet punishment:
;antinuke punishment banAdd trusted admins/bots to whitelist:
;antinuke whitelist add @TrustedUserCheck bot permissions:
;antinuke status
You're done! Read full setup below for advanced options.
Setup
Enable anti-nuke protection:
;antinuke enable(Optional) Set co-owners who can manage settings:
;antinuke coowner add @Moderator(Optional) Configure punishment type:
;antinuke punishment kick(Optional) Toggle specific protection modules:
;antinuke toggle channels falseView current status:
;antinuke status
Configuration
enabled: Toggles the entire anti-nuke system on or off.ownerId: The ID of the server owner (automatically set).coOwners: A list of user IDs who can also manage anti-nuke settings.whitelist: A list of user IDs who are exempt from anti-nuke checks.punishment: The action taken against detected nukers:ban,kick, orstrip(removes all roles).permissionAlerts: Toggles alerts for when the bot lacks necessary permissions.protectionModules: A sub-object configuring individual protection types:channels: Protects against mass channel deletion/creation.roles: Protects against mass role deletion/creation.kicks: Protects against mass member kicks.bans: Protects against mass member bans.webhooks: Protects against webhook abuse.botAdd: Protects against malicious bot additions.botPerms: Protects against bot permission escalation.guildUpdate: Protects against server settings modification.unverifiedBots: Kicks unverified bots upon joining. Each module hasenabled(true/false),alertThreshold, andbanThreshold.
thresholds: A sub-object for general thresholds:strikeLimit: The number of strikes a user can accumulate before apunishmentis applied.
whitelistBackupBots: Toggles automatic whitelisting of known backup bots.
Common Issues:
Protection is not active → Ensure the bot's highest role is in the top 8 server roles and it has all required permissions (
Manage Channels,Manage Roles,Ban Members,Kick Members,View Audit Log).Trusted admins are being punished → Add the trusted user's ID to the whitelist using
;antinuke whitelist add @user.Bot cannot revert changes → The bot must have a role higher than the user who performed the destructive action.
Bot keeps leaving → Check the
BlockNukeBotJoin.jshandler for hardcoded banned IDs if the bot is leaving immediately after joining.
Usage
Once enabled, Anti-Nuke Protection actively monitors server events. If a user performs actions that exceed configured thresholds, Squint will intervene by applying the specified punishment and logging the incident. It also automatically bans known nuke bots and removes unverified bots.
Related Commands
;antinuke- Main command for managing anti-nuke settings.;antiraid- Specific protection against profile picture raids.
Last updated
Was this helpful?