aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2020-02-03 13:27:07 +0000
committerGravatar Matteo Bertucci <[email protected]>2020-02-03 13:27:07 +0000
commitae388820dc45f12b6486dfa793aecb9ba5f0345b (patch)
treea803d7a8b17c49d2b3a13bcd6d7c7ecbca8df0d1
parentRelay attchments to #attachment_log (diff)
Replace constant attachment-repost by the actual ID of #attachment-log
-rw-r--r--bot/cogs/antispam.py2
-rw-r--r--bot/constants.py2
-rw-r--r--config-default.yml3
3 files changed, 3 insertions, 4 deletions
diff --git a/bot/cogs/antispam.py b/bot/cogs/antispam.py
index 80f82ab91..bbc1a5359 100644
--- a/bot/cogs/antispam.py
+++ b/bot/cogs/antispam.py
@@ -61,7 +61,7 @@ class DeletionContext:
self.messages[message.id] = message
# Re-upload attachments
- destination = message.guild.get_channel(GuildConfig.attachment_repost)
+ destination = message.guild.get_channel(Channels.attachment_log)
urls = await send_attachments(message, destination, link_large=False)
self.attachments.append(urls)
diff --git a/bot/constants.py b/bot/constants.py
index 9a4522262..2050359cd 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -347,6 +347,7 @@ class Channels(metaclass=YAMLGetter):
admins: int
admin_spam: int
announcements: int
+ attachment_repost: int
big_brother_logs: int
bot: int
checkpoint_test: int
@@ -417,7 +418,6 @@ class Guild(metaclass=YAMLGetter):
id: int
ignored: List[int]
staff_channels: List[int]
- attachment_repost: int
class Keys(metaclass=YAMLGetter):
diff --git a/config-default.yml b/config-default.yml
index 0ecf88702..5e85c897d 100644
--- a/config-default.yml
+++ b/config-default.yml
@@ -138,8 +138,7 @@ guild:
verification: 352442727016693763
staff_channels: [*ADMINS, *ADMIN_SPAM, *MOD_SPAM, *MODS, *HELPERS, *ORGANISATION, *DEFCON]
- ignored: [*ADMINS, *MESSAGE_LOG, *MODLOG]
- attachment_repost: *ATTCH_LOG
+ ignored: [*ADMINS, *MESSAGE_LOG, *MODLOG, *ATTCH_LOG]
roles:
admin: &ADMIN_ROLE 267628507062992896