diff options
| author | 2018-07-16 20:19:29 +0000 | |
|---|---|---|
| committer | 2018-07-16 20:19:29 +0000 | |
| commit | 78404c13e952bdc408158324b4efce0eec9f251f (patch) | |
| tree | 9e7569df1fff9b60b2836901ddd4cf45f51a96f4 | |
| parent | Merge branch 'feature/add-big-brother-cog' into 'master' (diff) | |
Adding all help channels to code block detection channel list, and setting default bigbrother channel to #big-brother-logs. Also cleaning up some constants.
| -rw-r--r-- | bot/cogs/bigbrother.py | 2 | ||||
| -rw-r--r-- | bot/cogs/bot.py | 10 | ||||
| -rw-r--r-- | bot/constants.py | 16 | ||||
| -rw-r--r-- | config-default.yml | 17 |
4 files changed, 28 insertions, 17 deletions
diff --git a/bot/cogs/bigbrother.py b/bot/cogs/bigbrother.py index 664f1b74c..ef7a62853 100644 --- a/bot/cogs/bigbrother.py +++ b/bot/cogs/bigbrother.py @@ -107,7 +107,7 @@ class BigBrother: if channel is not None: channel_id = channel.id else: - channel_id = Channels.message_change_logs + channel_id = Channels.big_brother_logs post_data = { 'user_id': str(user.id), diff --git a/bot/cogs/bot.py b/bot/cogs/bot.py index af9abd7cb..e79fc7ada 100644 --- a/bot/cogs/bot.py +++ b/bot/cogs/bot.py @@ -25,10 +25,12 @@ class Bot: # Stores allowed channels plus epoch time since last call. self.channel_cooldowns = { - Channels.help0: 0, - Channels.help1: 0, - Channels.help2: 0, - Channels.help3: 0, + Channels.help_0: 0, + Channels.help_1: 0, + Channels.help_2: 0, + Channels.help_3: 0, + Channels.help_4: 0, + Channels.help_5: 0, Channels.python: 0, } diff --git a/bot/constants.py b/bot/constants.py index 17ec1779e..7248cd36a 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -181,17 +181,23 @@ class Channels(metaclass=YAMLGetter): subsection = "channels" announcements: int + big_brother_logs: int bot: int checkpoint_test: int devlog: int devtest: int - help0: int - help1: int - help2: int - help3: int - help4: int + help_0: int + help_1: int + help_2: int + help_3: int + help_4: int + help_5: int helpers: int modlog: int + message_change_logs: int + off_topic_1: int + off_topic_2: int + off_topic_3: int python: int verification: int diff --git a/config-default.yml b/config-default.yml index b0edb033d..bd77e695e 100644 --- a/config-default.yml +++ b/config-default.yml @@ -18,23 +18,26 @@ guild: channels: announcements: 354619224620138496 + big_brother_logs: 468507907357409333 bot: 267659945086812160 checkpoint_test: 422077681434099723 devlog: 409308876241108992 devtest: 414574275865870337 - help0: 303906576991780866 - help1: 303906556754395136 - help2: 303906514266226689 - help3: 439702951246692352 - help4: 451312046647148554 + help_0: 303906576991780866 + help_1: 303906556754395136 + help_2: 303906514266226689 + help_3: 439702951246692352 + help_4: 451312046647148554 + help_5: 454941769734422538 helpers: 385474242440986624 modlog: 282638479504965634 message_change_logs: 467752170159079424 - python: 267624335836053506 - verification: 352442727016693763 off_topic_0: 291284109232308226 off_topic_1: 463035241142026251 off_topic_2: 463035268514185226 + python: 267624335836053506 + verification: 352442727016693763 + roles: admin: 267628507062992896 |