Anti-nuke

Stop unauthorized destructive changes and automatically recover from them. Configure with the antinuke command (18 subcommands).

Setup

?antinuke config

View anti-nuke configuration.

?antinuke enable

Enable anti-nuke.

?antinuke disable

Disable anti-nuke.

?antinuke recovery

Toggle recovery mode to auto-restore damage.

Owners & whitelisting

?antinuke secondowner

Set a second owner who can manage anti-nuke.

?antinuke removesecondowner

Remove the second owner.

?antinuke ignoreuser

Ignore or unignore a trusted user. Ignored users skip anti-nuke.

?antinuke ignorerole

Ignore or unignore a trusted role. Members with it skip anti-nuke.

?antinuke ignoreconfig

Show the anti-nuke ignore list.

?antinuke ignorereset

Reset the anti-nuke ignore list.

The owner and second owner are never acted on. Ignored members are only limited for bursts of channel, role or server changes (the ignored threshold, set on the dashboard: warned, then a 24h timeout). Their bans, kicks, bot adds and other actions are not limited, so only ignore people you fully trust.

Punishment & thresholds

?antinuke punishment

Change the punishment applied to offenders. Mute is a 24h timeout and doesn't work on members with Administrator.

?antinuke threshold

Set which action by a non-ignored member triggers anti-nuke. 1 (default) acts on the first one.

?antinuke timewindow

Set how long the action threshold counts actions, in seconds (default 10).

?antinuke botlimit

Set which bot add by a non-ignored member within an hour triggers anti-nuke. 1 (default) acts on the first bot.

Both limits only count members who aren't ignored, and 1 means the first action triggers. Bot adds use their own limit, counted over an hour, instead of the action threshold. When a limit is reached, the member is punished and, with auto recovery on, their earlier actions in the window are undone too (bots kicked, bans reversed, channels and roles restored).

Logging & alerts

?antinuke logs

Set the log channel for anti-nuke events.

?antinuke removelog

Remove the anti-nuke log channel.

?antinuke alertroles

Add a role to ping when attacks are detected.

?antinuke removealertrole

Remove a role from alert pings.