chæ1docs

Modules

Antinuke, antiraid & antibot

Stop admins or bots who go rogue, survive raids, and keep suspicious accounts out.

Antinuke

Antinuke watches for destructive actions, like mass bans or deleted channels, and stops whoever does them, even if they're an admin. Then it undoes the damage.

It's off until you turn it on

Run !antinuke setup first. It checks chæ1's permissions and role position, then creates a Quarantined role. Then the server owner runs !antinuke on.

Who can use it

!antinuke doesn't follow the normal permission system, so an attacker with admin can't switch it off:

Who Can
Server owner Everything
Extra owners Everything except adding or removing extra owners. They get alerts by DM too
Trusted admins Change settings and skip every limit, but not turn it off or change who's trusted
Trusted for some actions Skip only those limits
!antinuke owner add @someone      server owner only
!antinuke admin add @someone
!antinuke trust add @ticketbot channel_create channel_delete
!antinuke trust list

Trust your bots

Ticket bots and other helper bots create and delete channels all the time. Trust them for those actions, or antinuke will stop them the first time they're busy. !antinuke lists bots and staff you might want to trust.

Limits

Anyone untrusted who goes over a limit gets stopped. These are the defaults; change any with !antinuke limit <action> <count> <seconds>, instant or default.

Action Default limit
ban · kick 3 in 30 seconds
channel_delete · role_delete 2 in 30 seconds
channel_create · role_create 4 in 30 seconds
emoji_delete 3 in 30 seconds
webhook 3 in 60 seconds
server_edit (renaming the server) 1 in 5 minutes
bot_add · prune · vanity · role_perms · role_grant Instantly, the first time

role_perms and role_grant mean giving a role dangerous permissions (like Administrator or Ban Members) or giving someone such a role.

What happens when it trips

  1. The person is quarantined: their roles are saved and removed, and they get the Quarantined role, which can't see any channel. Rogue bots are kicked. You can choose kick or ban instead with !antinuke punishment.
  2. Recovery undoes what they did: unbans people, removes bots and webhooks they added, takes back dangerous roles and permissions, deletes what they created, and rebuilds channels and roles they deleted.
  3. The owner, extra owners and the modlog get an alert saying who did what and what was undone.
  4. Panic mode starts: for 10 minutes every limit is instant for anyone untrusted.

!antinuke release @someone gives a quarantined member their roles back. Leaving and rejoining doesn't escape quarantine.

What can't come back

Messages in deleted channels and kicked members can't be restored. The alert says so.

Panic mode

!antinuke panic on [minutes]
!antinuke panic off
!antinuke panic lockdown on     also lock every public channel during panic
!antinuke autopanic off         don't start it automatically

Antiraid

Antiraid catches many accounts joining at once.

!modconfig antiraid on
!modconfig antiraid threshold 8 10      8 joins in 10 seconds
!modconfig antiraid action quarantine   kick, ban, timeout or quarantine

Crossing the threshold starts raid mode: everyone in the burst is handled, every join after it too, until no one has joined for a while (quiet <minutes>). lock on also locks public channels during raid mode, and end stops it early.

Antibot & join gate

!antibot controls who gets in:

Check Turn on Does
Bot gate !antibot gate on Removes bots added without being whitelisted (whitelist add @bot)
New accounts !antibot newaccount on Acts on accounts younger than age <hours>, optionally without an avatar
Suspicious names !antibot names on Acts on names with invite links, URLs, "free nitro" and similar. Edit the list with add and remove
Invite bursts !antibot invites on Handles many joins through one invite and deletes the invite

Each can kick, ban, time out or quarantine. The bot gate and new-account check are off by default.

Commands

CommandWhat it doesAliasesPermission
!antinuke Antinuke: limits on destructive actions, quarantine, panic mode and recovery. !an Everyone
!antibot Configure unauthorized-bot protection and suspicious new-account detection. — Everyone