feat:修复麦麦不说话的bug

This commit is contained in:
SengokuCola
2025-09-17 19:53:59 +08:00
parent 1b31702b53
commit 6ea3a37dd9
4 changed files with 27 additions and 620 deletions

View File

@@ -202,7 +202,9 @@ class HeartFChatting:
# *控制频率用
if mentioned_message:
await self._observe(recent_messages_list=recent_messages_list, force_reply_message=mentioned_message)
elif random.random() > global_config.chat.talk_value:
elif random.random() < global_config.chat.talk_value:
await self._observe(recent_messages_list=recent_messages_list)
else:
return True
else:
# Normal模式消息数量不足等待