feat(emoji): 记录表情包发送状态

在表情包发送成功或失败后,分别记录操作信息。这有助于更好地追踪和调试表情包功能的状态,两行就应该能解决重复发送的问题了,遥遥领先!
This commit is contained in:
minecraft1024a
2025-09-12 19:54:13 +08:00
parent 493cd2b837
commit d658fd8eb0

View File

@@ -165,7 +165,9 @@ class EmojiAction(BaseAction):
if not success:
logger.error(f"{self.log_prefix} 表情包发送失败")
await self.store_action_info(action_build_into_prompt = True,action_prompt_display =f"发送了一个{chosen_emotion}的表情包,但失败了",action_done= False)
return False, "表情包发送失败"
await self.store_action_info(action_build_into_prompt = True,action_prompt_display =f"发送了一个{chosen_emotion}的表情包",action_done= True)
return True, f"发送表情包: {emoji_description}"