diff options
author | 2018-12-26 10:00:08 -0500 | |
---|---|---|
committer | 2018-12-26 10:00:08 -0500 | |
commit | 191d8abceabff5b442cf1e0ce0aa5fe238520341 (patch) | |
tree | 21f9dc0493894f91de3203db341fe966255e2b9e /bot/seasons/christmas/adventofcode.py | |
parent | Remove extraneous whitespace (diff) |
Remove local env var modification command
Diffstat (limited to 'bot/seasons/christmas/adventofcode.py')
-rw-r--r-- | bot/seasons/christmas/adventofcode.py | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/bot/seasons/christmas/adventofcode.py b/bot/seasons/christmas/adventofcode.py index 056c36ab..113f959d 100644 --- a/bot/seasons/christmas/adventofcode.py +++ b/bot/seasons/christmas/adventofcode.py @@ -20,7 +20,6 @@ log = logging.getLogger(__name__) AOC_REQUEST_HEADER = {"user-agent": "PythonDiscord AoC Event Bot"} AOC_SESSION_COOKIE = {"session": Tokens.aoc_session_cookie} -AOC_JOIN_CODE = AocConfig.leaderboard_join_code # Constant so staff can update without redeploying EST = timezone("EST") COUNTDOWN_STEP = 60 * 5 @@ -206,7 +205,7 @@ class AdventOfCode: info_str = ( "Head over to https://adventofcode.com/leaderboard/private " - f"with code `{AOC_JOIN_CODE}` to join the PyDis private leaderboard!" + f"with code `{AocConfig.leaderboard_join_code}` to join the PyDis private leaderboard!" ) try: await author.send(info_str) @@ -216,20 +215,6 @@ class AdventOfCode: f':x: {author.mention}, please (temporarily) enable DMs to receive the join code' ) - @with_role(Roles.admin, Roles.owner) - @adventofcode_group.command(name="changecode", hidden=True) - async def update_aoc_join_code(self, ctx: commands.Context, new_code: str): - """ - Staff command to update the AoC join code constant locally to allow for the code to be updated - on regeneration without having to redeploy the bot - """ - - author = ctx.message.author - log.info(f"{author.name} ({author.id}) has changed the PyDis AoC leaderboard code") - - global AOC_JOIN_CODE # Necessary (probably?) evil to update the code without redeploying - AOC_JOIN_CODE = new_code - @adventofcode_group.command( name="leaderboard", aliases=("board", "lb"), |