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
|
return
|
||||||
|
|
||||||
if message.attachments and bot.user in message.mentions:
|
if message.attachments and bot.user in message.mentions:
|
||||||
message_attachments = [
|
async with message.channel.typing():
|
||||||
{'filename': i_attachment.filename, 'url': i_attachment.url} for i_attachment in message.attachments
|
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 message.channel.send(await image_recognition(message.content, message_attachments))
|
||||||
|
|
||||||
await bot.process_commands(message)
|
await bot.process_commands(message)
|
||||||
# endregion
|
# endregion
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user