mat-1 / forum-sweats

The Discord bot in the Forum Sweats server
https://forumsweats.matdoes.dev
MIT License
9 stars 8 forks source link

Automatic mute length guess #8

Closed mat-1 closed 4 years ago

mat-1 commented 4 years ago

If you omit the length argument in !mute, it should automatically guess the length based on previous infractions.

Keywords "spam": 30m "nsfw": 12h "toxic": 1h "drama": 30m "discrimination": 72h "slurs": 168h, moderator can choose to ban if it's severe enough "dox": 168h, moderator should ban "creepy/weird": 24h, moderator should ban if it's severe enough unknown: 1h? (maybe change this idk)

starting length = check keywords for the new infraction, and set the length to that

For each previous infraction (under a month old):