From c320e9df7e2464483ae499784fe3edae5a6de8a9 Mon Sep 17 00:00:00 2001 From: Aesthetic Date: Wed, 8 Jul 2026 14:45:31 -0700 Subject: [PATCH] chore: make file load in randomgif async --- cogs/fun.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/fun.py b/cogs/fun.py index e4f148d..408edf5 100644 --- a/cogs/fun.py +++ b/cogs/fun.py @@ -40,7 +40,7 @@ async def funfact_cmd(interaction): @discohook.command.slash('randomgif', description='Get a free cool gif from my gifs.') async def randomgif_cmd(interaction): await interaction.response.defer() - with open("data/gifs.json", "r") as data: + async with open("data/gifs.json", "r") as data: gifs = json.load(data) await interaction.response.followup(random.choice(gifs) + "\n **heres ur tuff gif**") -- 2.51.2