Discord bot · Security
Security setup
Keep the server safe from rogue staff, raids and spam bots: antinuke limits what any one person can do, antiraid stops mass joins and fresh accounts, the honeypot catches spam bots, and hardbans keep people out for good.
The ten-minute setup
Move the bot's role to the top of the role list, then run,antinuke on, ,antiraid massjoin on, ,antiraid honeypot create and give your moderators fake permissions instead of real ones.Antinuke#
Antinuke counts what each person does from the audit log: deleting channels or roles, banning, kicking, making webhooks, adding bots. Someone who goes over a limit within a minute is punished straight away, before they can do more. The server owner and people on the whitelist are never punished. Only the owner (or people they trust in the bot panel) can change antinuke.
| channelDelete | Channels deleted (default 3 a minute) |
| channelCreate | Channels created (default 6) |
| roleDelete | Roles deleted (default 3) |
| roleCreate | Roles created (default 6) |
| ban | Members banned (default 5) |
| kick | Members kicked (default 5) |
| webhook | Webhooks created (default 3) |
| botAdd | A bot added by anyone but the owner is kicked (on by default) |
,antinukealso ,anAdministrator
Turn antinuke on, choose the punishment, change a limit, and manage the whitelist.
The default punishment is strip: every role with a dangerous permission is taken away, so the person keeps their account in the server but can't do anything. Choose kick or ban to remove them instead.
Syntax
,antinuke on ,antinuke off ,antinuke status ,antinuke punish <strip|kick|ban> ,antinuke limit <kind> <n> ,antinuke botadd <on|off> ,antinuke whitelist <add|remove|list> [@user]
Examples
,antinuke on ,antinuke punish strip ,antinuke limit ban 3 ,antinuke botadd on ,antinuke whitelist add @CoOwner
Antiraid and join gate#
Antiraid looks at everyone who joins. Each check has its own punishment (see punishments). Bots are left to antinuke, and people on the antiraid whitelist are never stopped. Everything antiraid does is posted in your log channel.
Mass joins#
When a set number of people join within a few seconds, raid mode starts: everyone who joined in that window is punished, and so is everyone who joins in the next few minutes. Raid mode ends by itself, or with ,antiraid end.
Syntax
,antiraid massjoin <on|off> [joins] [seconds] [punishment] ,antiraid lock <minutes> ,antiraid end
Examples
,antiraid massjoin on 10 10 ban ,antiraid lock 15 ,antiraid end
New accounts#
Accounts made fewer than a set number of days ago are stopped at the door. Most raid and alt accounts are hours old.
Syntax
,antiraid age <on|off> [days] [punishment]
Example
,antiraid age on 7 kick
No avatar#
Syntax
,antiraid avatar <on|off> [punishment]
Example
,antiraid avatar on kick
Whitelist and status#
,antiraid on its own shows every check, whether a raid is going on, and how many people each punishment stopped. Whitelisting someone lets them through every check (a friend with a new account, for example); run it again to remove them.
Syntax
,antiraid ,antiraid whitelist <user>
Example
,antiraid whitelist @newfriend
Honeypot#
A honeypot is a channel nobody should write in. Spam bots post their links in every channel they can see, so they write there and are removed automatically, with their message. Softban is the default: they're removed and their messages from the last day disappear. The server owner and whitelisted people are never punished.
Syntax
,antiraid honeypot <#channel> [punishment] ,antiraid honeypot create ,antiraid honeypot off
Examples
,antiraid honeypot create ,antiraid honeypot #do-not-type-here ban
Keep it visible
The honeypot only works if everyone can see the channel. Put it near the top with a clear name and topic so real members know not to write there.Hardban#
A hardban is a ban that can't be undone by accident. If someone unbans them from Discord's menu, or they come back on a new invite somehow, the bot bans them again. Only ,unhardban lets them back.
,hardbanalso ,hbAdministrator
Ban someone for good.
Syntax
,hardban <user> [reason] ,hardban list
Examples
,hardban @raider alt of a banned account ,hardban 123456789012345678 ,hardban list
,unhardbanalso ,uhbAdministrator
Lift a hardban and unban.
Syntax
,unhardban <user>
Example
,unhardban @raider
Fake permissions#
Let a role use the bot's moderation commands without the real Discord permission, so a stolen or rogue staff account can't mass-ban through Discord or a script.
,fakepermissionsalso ,fpAdministrator
Give a role a permission that only counts for the bot's commands.
Syntax
,fakepermissions grant <role> <permission> ,fakepermissions revoke <role> <permission> ,fakepermissions list
Examples
,fakepermissions grant @Moderator ban_members ,fakepermissions grant @Helper moderate_members ,fakepermissions list
Permission names are listed on Syntax & permissions.
More protection#
- AutoMod (links, invites, spam, caps, mentions, bad words, scam links), the ban network and AI moderation: Moderation & safety.
- Every moderation command, mutes and the jail: Moderation commands.
- Backups of roles, channels and settings you can restore after an attack:
,backup, restored in the bot panel.