From 0839b38189cd6b0f4278323b060a83e2c3de2b2d Mon Sep 17 00:00:00 2001 From: Yuki Joou Date: Wed, 22 Feb 2023 21:59:46 +0100 Subject: [PATCH] main: Fixed silly missing `return` causing an exception --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index f23368d..df4aabc 100755 --- a/main.py +++ b/main.py @@ -27,6 +27,7 @@ async def gif_handler(message: discord.Message, command: list[str]): if gif_kind not in gifs: await message.reply( "im so sorry, i have no such thing to give you for now... come back later :3") + return choosen_gif = random.choice(gifs[gif_kind]) await message.reply(f"here u go {target}\n{choosen_gif}")