aboutsummaryrefslogtreecommitdiffstats
path: root/bot/constants.py
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-11-30 14:45:48 -0500
committerGravatar S. Co1 <[email protected]>2019-11-30 14:45:48 -0500
commit78088788380b4e93369fe3f32b020551ecc76644 (patch)
tree5f0b0a0cc8f9dda2b81a9894296536e3431d1e5b /bot/constants.py
parentRefactor random generator to use a local instance rather than system (diff)
parentUpdate icon path for 2019 festive season (#316) (diff)
Merge branch 'master' into monster_bio
Relock
Diffstat (limited to 'bot/constants.py')
-rw-r--r--bot/constants.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/constants.py b/bot/constants.py
index 9c4f102c..bea595d6 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -1,6 +1,7 @@
import logging
from os import environ
from typing import NamedTuple
+from datetime import datetime
__all__ = (
"AdventOfCode", "Channels", "Client", "Colours", "Emojis", "Hacktoberfest", "Roles", "Tokens",
@@ -13,10 +14,10 @@ log = logging.getLogger(__name__)
class AdventOfCode:
leaderboard_cache_age_threshold_seconds = 3600
- leaderboard_id = 363275
+ leaderboard_id = 631135
leaderboard_join_code = str(environ.get("AOC_JOIN_CODE", None))
leaderboard_max_displayed_members = 10
- year = 2018
+ year = int(environ.get("AOC_YEAR", datetime.utcnow().year))
role_id = int(environ.get("AOC_ROLE_ID", 518565788744024082))