Quick start
- Press Add to Discord, pick your server and approve the permissions.
- Open Server Settings, Roles and drag the ZeroHour role above the admin and mod roles it should be able to strip.
- Done. ZeroHour starts protecting your server straight away.
Permissions
ZeroHour needs View Audit Log (to see who did what), Manage Roles and Manage Channels (to strip and restore), Ban Members (softbans), and Manage Webhooks (to remove webhook spam). It also asks for Kick, Timeout and Read Message History. It cannot act on the server owner, and it cannot grant permissions it does not hold itself.
Anti-raid
Every new member gets a watch window (10 minutes by default). Each message earns points: plain 1, link 3, invite 5, mass mention 5, plus 2 for a duplicate and 2 for a burst. At 12 points the account is softbanned: banned and instantly unbanned so their recent messages are purged. If 8 accounts join within 30 seconds, raid mode lengthens the windows and halves the limit.
Anti-nuke
ZeroHour counts what each person does in the audit log. Three channel deletes in 10 seconds, four bans in 30, or seven destructive actions in 20 trips it. It then strips their dangerous roles, pings the owner, waits for them to stop, and restores deleted channels, roles, permission overwrites and role members from the last snapshot taken before the attack. Snapshots are taken every 5 minutes.