From ec1604d391ebbc14e25c52930e6ccadf3548b171 Mon Sep 17 00:00:00 2001 From: jodth07 Date: Tue, 19 May 2020 20:52:24 -0400 Subject: 5/19 - ext - set upen files encoding to utf8 for bots --- bot/exts/halloween/halloweenify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/exts/halloween/halloweenify.py') diff --git a/bot/exts/halloween/halloweenify.py b/bot/exts/halloween/halloweenify.py index 5c433a81..aae7590a 100644 --- a/bot/exts/halloween/halloweenify.py +++ b/bot/exts/halloween/halloweenify.py @@ -21,7 +21,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. -- cgit v1.2.3