aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2019-12-04 15:10:59 +0100
committerGravatar Sebastiaan Zeeff <[email protected]>2019-12-04 15:10:59 +0100
commit529102d75682550202b230a32ca59a0a6c7dd58b (patch)
tree97b19adfd441623365ec9fd8e263315555033d7e
parentAdd 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.
-rw-r--r--bot/constants.py2
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