diff options
| author | 2020-11-24 17:44:08 +0200 | |
|---|---|---|
| committer | 2020-11-24 17:44:08 +0200 | |
| commit | 2f6236671f89eb1088e985284f87292695e376cf (patch) | |
| tree | 9385860489c9305ec5f17ce55198583ee0fe1035 | |
| parent | Add staff AoC channel to whitelist (diff) | |
Add comments about AoC env config order and change cookies way
| -rw-r--r-- | bot/constants.py | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/bot/constants.py b/bot/constants.py index 841f2303..bbfe7c3f 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -33,6 +33,7 @@ class AdventOfCode:      leaderboard_cache_age_threshold_seconds = 3600      leaderboard_public_ids = [645282]      leaderboard_staff_id = 957532 +    # Public join codes in environment must be in same order than in AdventOfCode.leaderboard_public_ids      leaderboard_public_join_codes = environ.get("AOC_PUBLIC_JOIN_CODES", "").split(",")      leaderboard_staff_join_code = environ.get("AOC_STAFF_JOIN_CODE", "")      leaderboard_max_displayed_members = 10 @@ -203,7 +204,9 @@ class Roles(NamedTuple):  class Tokens(NamedTuple):      giphy = environ.get("GIPHY_TOKEN") -    aoc_session_cookie = environ.get("AOC_SESSION_COOKIE") +    # Public AoC cookies in environment must be in same order than in AdventOfCode.leaderboard_public_ids +    aoc_public_session_cookies = environ.get("AOC_PUBLIC_SESSION_COOKIES", "").split(",") +    aoc_staff_session_cookie = environ.get("AOC_STAFF_SESSION_COOKIE")      omdb = environ.get("OMDB_API_KEY")      youtube = environ.get("YOUTUBE_API_KEY")      tmdb = environ.get("TMDB_API_KEY") | 
