aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/halloweenify.py
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2020-11-30 15:18:42 +0100
committerGravatar GitHub <[email protected]>2020-11-30 15:18:42 +0100
commit0ad849431eee3cab48485a132df23b0883142cf6 (patch)
treed9bd17fbd8f22c45e682079f6e3e565b6e17f61d /bot/exts/halloween/halloweenify.py
parent"adding xkcd feature" (diff)
parentMerge pull request #532 from python-discord/sebastiaan/ci/add-core-dev-approv... (diff)
Merge branch 'master' into issue-337
Diffstat (limited to 'bot/exts/halloween/halloweenify.py')
-rw-r--r--bot/exts/halloween/halloweenify.py2
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.