aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar mbaruh <[email protected]>2022-10-30 22:51:15 +0200
committerGravatar mbaruh <[email protected]>2022-10-31 22:01:59 +0200
commit3fc53356b5746533d76d82846b8fd9b9c649eac5 (patch)
treef1933bac691dc0d716ad50563c2ab7f42cd66a70 /tests
parentHandle context message possibly being None (diff)
Add antispam filter list and duplicates filter
Adds the antispam filterlist, which dispatches a set of messages sent in the last X seconds to its filters. Unlike other filter lists, it doesn't just return the actions to be taken, but rather splits them in two: any actions unrelated to alerting mods are returned as usual, while actions related to alerting are used in a delayed coroutine, from which the alert is sent. - Fixes `infraction_channel` not using the context channel when it's None. - Moves the `upload_log` function outside the ModLog cog, as it only needed it for the bot instance. - Any auto-deleted message with attachments will now have its attachments logged.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions