aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/halloween_facts.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts/halloween/halloween_facts.py')
-rw-r--r--bot/exts/halloween/halloween_facts.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/halloween/halloween_facts.py b/bot/exts/halloween/halloween_facts.py
index 3a89b5aa..98cc2db0 100644
--- a/bot/exts/halloween/halloween_facts.py
+++ b/bot/exts/halloween/halloween_facts.py
@@ -30,8 +30,7 @@ class HalloweenFacts(commands.Cog):
"""A Cog for displaying interesting facts about Halloween."""
def __init__(self):
- with Path("bot/resources/halloween/halloween_facts.json").open("r", encoding="utf8") as file:
- self.halloween_facts = json.load(file)
+ self.halloween_facts = json.loads(Path("bot/resources/halloween/halloween_facts.json").read_text("utf8"))
self.facts = list(enumerate(self.halloween_facts))
def random_fact(self) -> Tuple[int, str]: