diff options
author | 2022-09-01 18:16:10 +0100 | |
---|---|---|
committer | 2022-10-02 18:33:49 +0100 | |
commit | 4697076a8de1b2ffd554e959414fe9ac9f3af60c (patch) | |
tree | d4192bb27d50b0541f82ef49c16ad8f0557f0c28 | |
parent | Merge pull request #2232 from python-discord/bot-2231-enhancements (diff) |
Send filter alerts to #filter-log instead of #mod-meta
This is to reduce the amount of spam in #mod-meta.
-rw-r--r-- | bot/constants.py | 1 | ||||
-rw-r--r-- | bot/exts/filters/filter_lists.py | 4 | ||||
-rw-r--r-- | config-default.yml | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/bot/constants.py b/bot/constants.py index 68a96876f..830ba049c 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -420,6 +420,7 @@ class Channels(metaclass=YAMLGetter): how_to_get_help: int attachment_log: int + filter_log: int message_log: int mod_log: int nomination_archive: int diff --git a/bot/exts/filters/filter_lists.py b/bot/exts/filters/filter_lists.py index c643f9a84..8cb83c19f 100644 --- a/bot/exts/filters/filter_lists.py +++ b/bot/exts/filters/filter_lists.py @@ -117,9 +117,9 @@ class FilterLists(Cog): ) raise - # If it is an autoban trigger we send a warning in #mod-meta + # If it is an autoban trigger we send a warning in #filter-log if comment and "[autoban]" in comment: - await self.bot.get_channel(Channels.mod_meta).send( + await self.bot.get_channel(Channels.filter_log).send( f":warning: Heads-up! The new `{list_type}` filter " f"`{content}` (`{comment}`) will automatically ban users." ) diff --git a/config-default.yml b/config-default.yml index a12b680e1..e84a6045b 100644 --- a/config-default.yml +++ b/config-default.yml @@ -178,6 +178,7 @@ guild: # Logs attachment_log: &ATTACH_LOG 649243850006855680 + filter_log: &FILTER_LOG 1014943924185473094 message_log: &MESSAGE_LOG 467752170159079424 mod_log: &MOD_LOG 282638479504965634 nomination_archive: 833371042046148738 @@ -257,6 +258,7 @@ guild: - *MESSAGE_LOG - *MOD_LOG - *STAFF_VOICE + - *FILTER_LOG reminder_whitelist: - *BOT_CMD |