Browse Source

[2.8.2] Fix emote usage in image analysis

Penta 3 tuần trước cách đây
mục cha
commit
5ef6765b56
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      chatbot.py

+ 4 - 2
chatbot.py

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