Documentation
Anti-Nuke Module
If someone mass-deletes channels or roles, creates a flood of channels, or bans in a burst, Lio strips dangerous roles or bans them.
Overview
Each action type has its own on/off switch and a threshold inside a time window.
The server owner is always exempt. Add staff roles that are allowed to clean up channels so they do not trip the protection.
Setup
- Enable Anti-Nuke in Modules.
- Choose the reaction: strip dangerous roles, or ban.
- Set the time window in seconds and a log channel.
- Add exempt roles for people who delete or create channels on purpose.
- Turn on the checks you want (channel delete, channel create, role delete, bans) and set each threshold.
- Save. The bot needs the audit-log permission and a role high enough to strip roles or ban.
Key settings
- Action: remove dangerous roles, or ban the account.
- Window: how many seconds of activity count together (5–120).
- Thresholds: how many events inside the window trigger the action (2–25).
- Exempt roles: never punished. The owner is exempt even if not listed.
Troubleshooting
- Staff got stripped → add their roles to Exempt roles before a cleanup.
- Nothing happened → the matching check is on, the threshold was reached, and the bot can see the audit log.
- Could not ban or strip → the bot role must sit above the target's roles.