diff options
| author | 2020-09-24 18:54:39 +0300 | |
|---|---|---|
| committer | 2020-09-24 18:54:39 +0300 | |
| commit | a3246bd40a3a496ad155d02653d3104392d9ff8e (patch) | |
| tree | fffc704f2cc09c44f4727872d8ad80bad5a10ae9 /bot/exts/christmas/adventofcode.py | |
| parent | Tictactoe: Use __str__ instead custom display method for user/AI name display (diff) | |
| parent | Merge branch 'master' into tic-tac-toe (diff) | |
Merge remote-tracking branch 'origin/tic-tac-toe' into tic-tac-toe
Diffstat (limited to 'bot/exts/christmas/adventofcode.py')
| -rw-r--r-- | bot/exts/christmas/adventofcode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/christmas/adventofcode.py b/bot/exts/christmas/adventofcode.py index cc3923c8..b3fe0623 100644 --- a/bot/exts/christmas/adventofcode.py +++ b/bot/exts/christmas/adventofcode.py @@ -58,7 +58,7 @@ async def countdown_status(bot: commands.Bot) -> None: hours, minutes = aligned_seconds // 3600, aligned_seconds // 60 % 60 if aligned_seconds == 0: - playing = f"right now!" + playing = "right now!" elif aligned_seconds == COUNTDOWN_STEP: playing = f"in less than {minutes} minutes" elif hours == 0: @@ -429,7 +429,7 @@ class AdventOfCode(commands.Cog): def _build_about_embed(self) -> discord.Embed: """Build and return the informational "About AoC" embed from the resources file.""" - with self.about_aoc_filepath.open("r") as f: + with self.about_aoc_filepath.open("r", encoding="utf8") as f: embed_fields = json.load(f) about_embed = discord.Embed(title=self._base_url, colour=Colours.soft_green, url=self._base_url) |