aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar sco1 <[email protected]>2018-12-10 16:12:01 -0500
committerGravatar sco1 <[email protected]>2018-12-10 16:12:01 -0500
commit8c3b8d8d270026591053cbf3a31013dd8e69080e (patch)
tree43ed5c12077e7ce34c01a7240eecf6c7609c548b
parentMerge pull request #88 from scragly/si_2 (diff)
Update static files for new code functionality
-rw-r--r--bot/constants.py2
-rw-r--r--bot/resources/advent_of_code/about.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/bot/constants.py b/bot/constants.py
index b57eb714..917b82af 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -15,7 +15,7 @@ log = logging.getLogger(__name__)
class AdventOfCode:
leaderboard_cache_age_threshold_seconds = 3600
leaderboard_id = 363275
- leaderboard_join_code = "363275-442b6939"
+ leaderboard_join_code = str(environ.get("AOC_JOIN_CODE", None))
leaderboard_max_displayed_members = 10
year = 2018
channel_id = int(environ.get("AOC_CHANNEL_ID", 517745814039166986))
diff --git a/bot/resources/advent_of_code/about.json b/bot/resources/advent_of_code/about.json
index 3fe6fcc9..4abf9145 100644
--- a/bot/resources/advent_of_code/about.json
+++ b/bot/resources/advent_of_code/about.json
@@ -21,7 +21,7 @@
},
{
"name": "Join our private leaderboard!",
- "value": "In addition to the global leaderboard, AoC also offers private leaderboards, where you can compete against a smaller group of friends!\n\nHead over to AoC's [private leaderboard page](https://adventofcode.com/leaderboard/private) and enter code `363275-442b6939` to join the PyDis private leaderboard!",
+ "value": "In addition to the global leaderboard, AoC also offers private leaderboards, where you can compete against a smaller group of friends!\n\nGet the join code using `.aoc join` and head over to AoC's [private leaderboard page](https://adventofcode.com/leaderboard/private) to join the PyDis private leaderboard!",
"inline": false
}
] \ No newline at end of file