This repository contains a collection of vetted rules to be used with Defender's Warden module.
Some can be used as-is, some will require adjustments for them to work with your server structure / workflow and some will be generic rules that showcase the more complex features of Warden.
It is expected that you have a solid grasp of how Defender works and understand a rule's logic before adding it to your server.
Never add a Warden rule before personally vetting its code.
Contributions are welcome, with a few caveats
- Your rule should be useful for a larger audience and not overly tailored to your community. Replace any ID with obvious placeholders (e.g. <USER_ID> <ROLE_ID>) and simplify it as much as possible by removing anything that is not strictly necessary
- If your rule takes action on a target make it rank 2 or below. Better safe than sorry
- Comments are welcome for particularly complex logic and non-obvious parts
- If your logic spans over multiple rules, or it's a series of related rules, name them accordingly. E.g. dehoister-1, dehoister-2
Name | Description |
---|---|
dehoister-1 | An event-based / periodic rule that renames people whose name starts with an exclamation mark for hoisting purposes |
dehoister-2 | Resets the nickname of people who are no longer hoisting |
new-user-1-attachments | Removes messages containing attachments from new users |
new-user-2-urls | Removes messages containing clickable urls from new users |
new-user-3-mute | Mute the user if they're spamming attachments and/or urls |
nitro-scam | A non-blacklist based approach to counter common nitro / steam scams bots |
post-raid-cleanup | Scenario: your server has been raided and you have 500 bots to evict |
run-once-rule | A rule that is supposed to run only once every 15 minutes |