diff options
author | 2019-12-04 15:10:59 +0100 | |
---|---|---|
committer | 2019-12-04 15:10:59 +0100 | |
commit | 529102d75682550202b230a32ca59a0a6c7dd58b (patch) | |
tree | 97b19adfd441623365ec9fd8e263315555033d7e /bot/constants.py | |
parent | Add context manager to safely unlock role mentionability (diff) |
Make AoC channel ID configurable for testing environments
I have made the `#advent-of-code` channel id configurable using the
same environment variable technique used for other settings. This
makes it easier to test features that rely on this channel in a test
environment.
Diffstat (limited to 'bot/constants.py')
-rw-r--r-- | bot/constants.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/constants.py b/bot/constants.py index c09d8369..ce650b80 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -23,7 +23,7 @@ class AdventOfCode: class Channels(NamedTuple): admins = 365960823622991872 - advent_of_code = 517745814039166986 + advent_of_code = int(environ.get("AOC_CHANNEL_ID", 517745814039166986)) announcements = int(environ.get("CHANNEL_ANNOUNCEMENTS", 354619224620138496)) big_brother_logs = 468507907357409333 bot = 267659945086812160 |