Added typing action while waiting for the reply
This commit is contained in:
parent
43e073cbd1
commit
bd631ad61a
@ -35,10 +35,11 @@ async def on_message(message: discord.Message):
|
||||
return
|
||||
|
||||
if message.attachments and bot.user in message.mentions:
|
||||
message_attachments = [
|
||||
{'filename': i_attachment.filename, 'url': i_attachment.url} for i_attachment in message.attachments
|
||||
]
|
||||
await message.channel.send(await image_recognition(message.content, message_attachments))
|
||||
async with message.channel.typing():
|
||||
message_attachments = [
|
||||
{'filename': i_attachment.filename, 'url': i_attachment.url} for i_attachment in message.attachments
|
||||
]
|
||||
await message.channel.send(await image_recognition(message.content, message_attachments))
|
||||
|
||||
await bot.process_commands(message)
|
||||
# endregion
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user