forked from kemonomimi/nyabot
main: Use username instead of ping when sending a gif
This commit is contained in:
parent
6edaf09909
commit
f6215ff69a
1 changed files with 3 additions and 5 deletions
8
main.py
8
main.py
|
@ -20,11 +20,9 @@ with open("gifs.json") as file:
|
|||
async def gif_handler(message: discord.Message, command: list[str]):
|
||||
gif_kind = command[0]
|
||||
|
||||
target = ""
|
||||
if len(command) <= 1:
|
||||
target = f"<@{message.author.id}>"
|
||||
else:
|
||||
target = command[1]
|
||||
target = message.author.name
|
||||
if len(message.mentions) == 0:
|
||||
target = message.mentions[0].name
|
||||
|
||||
if gif_kind not in gifs:
|
||||
await message.reply(
|
||||
|
|
Loading…
Reference in a new issue