diff options
| author | 2020-05-25 10:34:52 +0100 | |
|---|---|---|
| committer | 2020-05-25 10:34:52 +0100 | |
| commit | bb30d2904b4a3273d4b10dc9548c542d65f0c379 (patch) | |
| tree | e6bf89e968dd39a153227aa8ca060496d2c3cbec /bot/exts/halloween/halloweenify.py | |
| parent | Merge pull request #401 from fuzzmz/minesweeper-disabled-dm-handling (diff) | |
| parent | Remove accidental extra word from docstring (diff) | |
Merge pull request #413 from jodth07/encoding_bug_fix
Encoding bug fix
Diffstat (limited to 'bot/exts/halloween/halloweenify.py')
| -rw-r--r-- | bot/exts/halloween/halloweenify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/halloween/halloweenify.py b/bot/exts/halloween/halloweenify.py index a19066cf..596c6682 100644 --- a/bot/exts/halloween/halloweenify.py +++ b/bot/exts/halloween/halloweenify.py @@ -22,7 +22,7 @@ class Halloweenify(commands.Cog): async def halloweenify(self, ctx: commands.Context) -> None: """Change your nickname into a much spookier one!""" async with ctx.typing(): - with open(Path("bot/resources/halloween/halloweenify.json"), "r") as f: + with open(Path("bot/resources/halloween/halloweenify.json"), "r", encoding="utf8") as f: data = load(f) # Choose a random character from our list we loaded above and set apart the nickname and image url. |