forked from kemonomimi/nyabot
main: Fixed wonky comparaison
This commit is contained in:
parent
058286e6be
commit
a16a906add
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -21,7 +21,7 @@ async def gif_handler(message: discord.Message, command: list[str]):
|
||||||
gif_kind = command[0]
|
gif_kind = command[0]
|
||||||
|
|
||||||
target = message.author.name
|
target = message.author.name
|
||||||
if len(message.mentions) == 0:
|
if len(message.mentions) > 0:
|
||||||
target = message.mentions[0].name
|
target = message.mentions[0].name
|
||||||
|
|
||||||
if gif_kind not in gifs:
|
if gif_kind not in gifs:
|
||||||
|
|
Loading…
Reference in a new issue