|
@@ -437,10 +437,12 @@ async def on_message(message):
|
|
|
# Analyser l'image avec l'API
|
|
# Analyser l'image avec l'API
|
|
|
analysis = await call_for_image_analysis(image_data, message.author.name, user_text=user_text_to_use)
|
|
analysis = await call_for_image_analysis(image_data, message.author.name, user_text=user_text_to_use)
|
|
|
|
|
|
|
|
|
|
+ reply = filter_message(analysis)
|
|
|
|
|
+ reply = transform_emote(analysis, True)
|
|
|
|
|
+
|
|
|
if analysis:
|
|
if analysis:
|
|
|
await temp_msg.delete()
|
|
await temp_msg.delete()
|
|
|
- await message.channel.send(analysis)
|
|
|
|
|
-
|
|
|
|
|
|
|
+ await message.channel.send(reply)
|
|
|
|
|
|
|
|
if has_user_text:
|
|
if has_user_text:
|
|
|
user_message_text = f"{message.author.name} a envoyé une image avec le messsage : \"{user_text}\"."
|
|
user_message_text = f"{message.author.name} a envoyé une image avec le messsage : \"{user_text}\"."
|