/discord-guardian

Set strict limits on administration actions such as bans and deletions with Guardian

Primary LanguageJavaScriptMIT LicenseMIT

Guardian

Guardian, a purpose built anti-nuke Discord bot.


How Guardian Works

Guardian allows server owners to set strict limits on administration actions. These actions include: bans, kicks, channel creations/deletions, and role creations/deletions. Once these limits are met, their Discord permissions are automatically revoked via removing all of their roles.


Setup

Requires Node v12 for discord.js

1. Add BOT_TOKEN property to a .env file

2. Configure config.js to your personal preferences

3. Run npm start to start the bot

4. Ensure the highest role the bot has is higher than others so it can remove their roles


Commands

You can mention the bot instead of using a prefix

g!prefix [prefix] Displays the current prefix, changes the prefix if specified

g!limits [index] [value] Displays the limits, changes an index's value if specified

g!reset [type] Resets the specified data or collection

g!recent [ID] Displays recent moderation actions that can trigger the bot's limits


Example Images

g!limits command

Image of a limit reached notification

g!recent command