forked from kemonomimi/nyabot
main: Fixed silly missing return
causing an exception
This commit is contained in:
parent
f2847b03a8
commit
0839b38189
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
@ -27,6 +27,7 @@ async def gif_handler(message: discord.Message, command: list[str]):
|
||||||
if gif_kind not in gifs:
|
if gif_kind not in gifs:
|
||||||
await message.reply(
|
await message.reply(
|
||||||
"im so sorry, i have no such thing to give you for now... come back later :3")
|
"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])
|
choosen_gif = random.choice(gifs[gif_kind])
|
||||||
await message.reply(f"here u go {target}\n{choosen_gif}")
|
await message.reply(f"here u go {target}\n{choosen_gif}")
|
||||||
|
|
Loading…
Reference in a new issue