Added typing action while waiting for the reply

This commit is contained in:
T-BENZIN 2025-06-28 11:52:39 +05:00
parent 43e073cbd1
commit bd631ad61a

View File

@ -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