diff options
author | 2019-11-18 11:14:48 +0100 | |
---|---|---|
committer | 2019-11-18 11:14:48 +0100 | |
commit | 248c51a5fc699489e054417e5f0d86b1f0622fdd (patch) | |
tree | 9c85dff229d11cff2c4b3fc5c25df84e14a3b58a /bot | |
parent | Merge pull request #311 from kwzrd/update-icon-constant (diff) |
year binds to datetime instead of a magic number
Diffstat (limited to 'bot')
-rw-r--r-- | bot/constants.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/constants.py b/bot/constants.py index aa5c3db3..9ea026ca 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", @@ -16,7 +17,7 @@ class AdventOfCode: leaderboard_id = 363275 leaderboard_join_code = str(environ.get("AOC_JOIN_CODE", None)) leaderboard_max_displayed_members = 10 - year = 2018 + year = datetime.utcnow().year role_id = int(environ.get("AOC_ROLE_ID", 518565788744024082)) |