PangobotDocs
EN
Safety

Verification & Anti-Nuke Free

A verification gate for newcomers, automatic lockdown during raids, and a guard against accounts that start deleting your server.

Three protections in one module: a verification gate for newcomers - with an image CAPTCHA, and either for everybody or only for accounts that look suspicious - an automatic lockdown when a raid starts, and anti-nuke - a guard against an account (often a compromised admin or a rogue bot) that suddenly starts deleting channels, roles or members.

Setting it up

  1. Verification: create a "verified" role and make your channels visible to that role only - or create a role for those who still have to verify and hide your channels from it. Leave one channel visible for the panel. Pick what a newcomer has to do (Type the code from a picture is the strongest), set the roles, save, then press Post / update the verification panel.
  2. Only suspicious accounts: switch on Only suspicious accounts have to verify and say what counts as suspicious: an account younger than a number of days, no profile picture, words in the name - and three more that cost nothing to check, because Discord sends them with the member: has not completed your onboarding (only worth using once Server Settings > Onboarding is really set up, or it counts against everybody), has been on this server before, and the name or profile text has been quarantined by Discord's own AutoMod. Everybody else gets in at once - with the verified role right away, if you use one. With While a lockdown runs, everyone has to verify, a raid makes it everybody again until the lockdown ends.
  3. Lockdown: set how many joins within how many seconds count as a raid, and what closing the doors means: pausing invites, raising Discord's verification level.
  4. Anti-nuke: choose which actions count, how many within how many seconds, and what happens then. Add the accounts you fully trust.
What a newcomer sees with the image CAPTCHA: five letters and digits, drawn anew for every question.
What a newcomer sees with the image CAPTCHA: five letters and digits, drawn anew for every question.

If a staff account is hijacked

A hijacked admin or moderator account - or a bot that turns rogue - usually does its damage within a minute: channels and roles deleted, members banned, new webhooks spamming. Anti-nuke watches Discord's audit log for exactly that. As soon as one account goes over the limit you set, this happens:

  1. The account is stopped, the way you chose under Then: all its roles are taken away (a bot is kicked), it is banned, or you only get an alert.
  2. What it handed out is taken back (not with Only alert): dangerous permissions it gave a role, admin roles it gave to other accounts - so its second accounts cannot carry on - and the webhooks it created. Dangerous permissions given to @everyone are taken back at once, even below the limit.
  3. Your log channel gets an alert with what the account did and what was done about it.
  4. Deleted channels can be brought back with one button - see below.

What comes back, and what does not

What the account didAfter anti-nuke
Deleted channels and categoriesRestored with the Restore deleted channels button, for seven days: name, category and place, permissions, topic, slowmode and the other channel settings. Your Pangobot settings that pointed to them are moved to the new channels.
Messages in those channelsGone for good: Discord deletes them with the channel.
Dangerous permissions given to roles, admin roles given to membersTaken back automatically.
Webhooks it createdDeleted automatically.
Deleted rolesNot restored: make them again by hand. The server log of Logging shows which ones went.
Bans, kicks and prunesNot undone automatically: lift the bans with /unban or in Server Settings > Bans; members who were kicked or pruned can come back with an invite.
  • Deleted channels can be restored. When anti-nuke stops an account that deleted channels, a Restore deleted channels button appears in the log channel. It makes them again - categories first, each channel in its category and place, with its permissions, topic and slowmode - moves channels that lost their category back into it, and points your settings (log channels, a welcome channel and the like) to the new channels. The messages of a deleted channel cannot come back: Discord deletes them with it. The button stays usable for seven days. **Restoring takes Manage Channels and Manage Roles,** with the button and in the dashboard alike, because the channels come back with their permissions.
  • If the log channel was deleted too, the server owner gets a direct message, and the same restore is in the dashboard: Verification & Anti-Nuke > Restore deleted channels. The dashboard names only the channels you can see; the others are counted.
  • A private channel is never made again as a public one: if Pangobot may not set its permissions, the channel is left out and named in the result.

Be ready before it happens

  • Anti-nuke can only stop accounts whose highest role is below the bot's role. Put the bot's role high.
  • Leave Count deleted channels on: Pangobot can only restore a channel whose settings it noted at the moment it was deleted.
  • Set a log channel that only staff can see, so the alert and the restore button reach you.
  • The server owner's own account and the trusted accounts are never stopped: keep that list short, and protect the owner account with two-factor authentication.
  • A hijacked admin cannot switch anti-nuke off first: switching it off or loosening it is the server owner's alone.

Settings

Everything you can set for this module in the dashboard, in the order the page shows it.

Log channelChannel

Verifications, lockdowns and anti-nuke alerts are posted here.

Role to ping for lockdowns and anti-nuke alertsRole

Only when “Log channel” is set.

Verification

Newcomers press a button in a channel only they can see. Set your channels up so that the rest of the server needs the "verified" role - or is hidden from the "unverified" one.

EnabledSwitchOff
What a newcomer has to doChoicePress the button
Role given after verifyingRole
Role for whoever still has to verify (taken away after verifying, optional)Role
Only suspicious accounts have to verifySwitchOff

Everybody else gets in at once - with the verified role right away, if you use one.

Suspicious: account younger than (days)Number0 to 3657

0 = the age does not count Only when “Only suspicious accounts have to verify” is on.

Suspicious: no profile pictureSwitchOn

Only when “Only suspicious accounts have to verify” is on.

Suspicious: Discord has flagged the account as a likely spammerSwitchOn

Discord marks accounts it believes are spam bots. The strongest single sign there is - accounts bought or farmed months in advance often have a picture and an old creation date, but not a clean record. Only when “Only suspicious accounts have to verify” is on.

Suspicious: has not completed your onboardingSwitchOff

Only useful when this server actually uses Onboarding (Server Settings > Onboarding). Without it nobody ever completes it, so everybody would count as suspicious. Only when “Only suspicious accounts have to verify” is on.

Suspicious: has been on this server beforeSwitchOff

Discord marks somebody who left and came back. Often harmless, and a sign worth having when people are getting around a kick. Only when “Only suspicious accounts have to verify” is on.

Suspicious: Discord's AutoMod has quarantined their name or profile textSwitchOn

Discord itself has found the name or the "About me" of that account unacceptable and is holding it back. Only when “Only suspicious accounts have to verify” is on.

Suspicious: the name containsListup to 100 entriesnitro, giveaway, airdrop, and 2 more

Look-alike letters, accents and spacing do not get around it. Only when “Only suspicious accounts have to verify” is on.

While a lockdown runs, everyone has to verifySwitchOn

Needs the lockdown below. Only when “Only suspicious accounts have to verify” is on. Can be changed only when “Lockdown during a raid” is on.

Tell whoever has to verify where to do it (direct message)SwitchOn

Only when “Only suspicious accounts have to verify” is on.

Wrong answers before someone is kickedNumber1 to 53

Not with “What a newcomer has to do”: “Press the button”.

Kick whoever has not verified after (minutes)Number0 to 14400

0 = never

Channel of the verification panelChannel
PanelMessage
Button textTextup to 40 characters“Verify”

Lockdown during a raid

Closes the doors for a while when many accounts join at once, and opens them again by itself. Needs the Manage Server permission.

EnabledSwitchOff
JoinsNumber3 to 20015
Within secondsNumber3 to 30020
Stay locked for (minutes)Number1 to 72015
Pause all invitesSwitchOn
Raise Discord's verification level to the highest (verified phone number)SwitchOff

Anti-nuke

Admins can switch it on and make it stricter; only the server owner can switch it off or loosen it. Watches the audit log - what a moderator does through Pangobot counts for that moderator. The server owner, Pangobot itself and the trusted accounts below are never touched - put other moderation bots there, they ban and kick on behalf of your moderators. Needs View Audit Log, and a role above the accounts it should stop.

EnabledSwitchOff
Actions by one accountNumber2 to 304
Within secondsNumber5 to 60030
Count deleted channelsSwitchOn
Count deleted rolesSwitchOn
Count bans, kicks and prunesSwitchOn

A prune counts as many times as it removed members.

Count created webhooksSwitchOn

When the account is stopped, the webhooks it created are deleted as well.

Count created channels and rolesSwitchOn

A flood of new channels or roles. Building is what admins do, so a creation counts half: it takes twice the number above.

Count dangerous permissions handed outSwitchOn

A role that gets (or is created with) Administrator, Manage Server / Roles / Channels / Webhooks, Ban, Kick, Timeout or Mention @everyone - and an admin role given to a member. When the account is stopped, these are taken back. If @everyone gets one of them, that is undone at once.

ThenChoiceTake all their roles away (bots are kicked)
Trusted accounts (never stopped)Accountsup to 50, by user ID

By user ID - or paste a mention.

Limits

  • Suspicious: the name contains: up to 100
  • Trusted accounts: up to 50
  • "Another picture" for the image CAPTCHA: 5 per 5 minutes.

Good to know

  • The server owner, Pangobot itself and the trusted accounts are never touched by anti-nuke. Put other moderation bots on the trusted list - they ban and kick on behalf of your moderators.
  • Admins can switch anti-nuke on and make it stricter - a lower limit, a longer window, more that counts, a harder reaction, fewer trusted accounts. Switching it off or loosening it in any way is the server owner's alone, and so is switching this module off while anti-nuke is on: a hijacked admin account cannot make room for itself first. For the same reason, while anti-nuke is on only the owner can connect, replace or remove the server's own bot (Custom branding).
  • What counts: deleted channels and roles, bans, kicks and prunes (a prune counts once per member it removed), created webhooks, a flood of new channels or roles (a creation counts half), and dangerous permissions handed out. Bans and kicks a moderator does through Pangobot count for that moderator.
  • A lockdown opens again by itself after the time you set, and invites and the verification level come back - also when Pangobot was away from your server at that time: it ends as soon as Pangobot is back. End lockdown now keeps working when this module is locked (for example after a refund) or switched off for everyone by the Pangobot team.
  • Post / update the verification panel first checks that Pangobot may post in the channel (View Channel, Send Messages, Embed Links, and Read Message History to update the panel) and says which permission is missing. A second click while the panel is being posted is refused. The panel's text and its button can only be changed by someone who may write in the panel's channel.
  • The picture code is five letters and digits, capitals or not - letters that look alike (0 and O, 1 and I, 5 and S) are never used. Another picture gives a new one without costing an attempt (a few every couple of minutes).
  • Someone who cannot read the picture (with a screen reader, for example) can be let in by a moderator: give them the verified role by hand. The symbol and button methods are the gentler choices.
  • No CAPTCHA stops a script that was written for your server in particular. The picture stops what joins servers by the thousand - together with the lockdown and Join Guard it closes the usual ways in.
  • The strongest sign of a suspicious account is Discord's own "likely spammer" flag - on by default. Accounts that are bought or farmed months in advance usually have a picture and an old creation date; the flag is what they cannot hide.
  • A suspicious newcomer gets a short direct message that points to the panel. It does not say what made the account suspicious - that would tell a scammer what to change next time. Your log channel does say it.
  • Newcomers who never verify can be kicked after a number of minutes; wrong answers are limited too, and remembered for an hour.
  • A lockdown never switches on invites that were already paused before it began, and it leaves a verification level alone that somebody changed while it ran.

What the bot needs

  • Manage Roles and Kick Members for verification (the kick after failed tries or when time runs out), and View Channel, Send Messages, Embed Links and Read Message History where its panel is. Manage Server for the lockdown. View Audit Log, Ban Members, Manage Roles and Manage Webhooks for anti-nuke (Kick Members to remove bots). Manage Channels and Manage Roles to restore deleted channels (and Administrator for channels whose permissions allow more than Pangobot may itself). Mention Everyone to ping an alert role that is not mentionable.