aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/pride/pride_anthem.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts/pride/pride_anthem.py')
-rw-r--r--bot/exts/pride/pride_anthem.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/pride/pride_anthem.py b/bot/exts/pride/pride_anthem.py
index a7f8d7ef..21b7e468 100644
--- a/bot/exts/pride/pride_anthem.py
+++ b/bot/exts/pride/pride_anthem.py
@@ -36,9 +36,7 @@ class PrideAnthem(commands.Cog):
@staticmethod
def load_vids() -> list:
"""Loads a list of videos from the resources folder as dictionaries."""
- with open(Path("bot/resources/pride/anthems.json"), "r", encoding="utf8") as f:
- anthems = json.load(f)
- return anthems
+ return json.loads(Path("bot/resources/pride/anthems.json").read_text("utf8"))
@commands.command(name="prideanthem", aliases=["anthem", "pridesong"])
async def prideanthem(self, ctx: commands.Context, genre: str = None) -> None: