strinking / futaba

Discord bot for the Programming server
MIT License
28 stars 10 forks source link

Add a layer of filter between flag and block #360

Open emmiegit opened 4 years ago

emmiegit commented 4 years ago

We should add a filter enforcement level called "warn", which isn't invisible to normal users like flagging, but doesn't delete the message. Instead it provides a premade message about the filter (the reason) in channel providing context.

However to avoid confused deputy spam, we will need to track channels and last warning sent per filter so it is not sent more than once per X (configurable) minutes.

Additionally, we can increment on subsequent occurrences, and once a higher threshold is passed, the filter begins enforcing with deletions, since at that point it's spam rather than a potentially good faith message that was flagged.