Kowlin / refactored-cogs

A list of (mostly) moderator related cogs for Red-DiscordBot
Mozilla Public License 2.0
11 stars 9 forks source link

[Antispam] Cog Contributions #11

Closed danhunsaker closed 7 years ago

danhunsaker commented 7 years ago

One commit so far:

Introduces a distinction between a "trigger" and a "fire"; always triggers all prerequisite reactions on every trigger, but only allows reactions to fire if their prerequisite reactions have been fired enough times to reach a threshold setting; only fires a reaction once per action event.

This basically lets users do things like remove all offending messages, warn their senders that action has been taken, and even kick users before resorting to bans.

NOTE: This may not be very Pythonic, but it has been run through autopep8, at least.