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**")