feat: 增加消息段mention_bot的解析

This commit is contained in:
tcmofashi
2025-07-02 13:05:57 +08:00
parent 02143a1a16
commit 289a92293b
3 changed files with 9 additions and 8 deletions

View File

@@ -494,7 +494,11 @@ class NormalChat:
# 检查是否有用户满足关系构建条件
asyncio.create_task(self._check_relation_building_conditions())
await self.reply_one_message(message)
do_reply = await self.reply_one_message(message)
response_set = do_reply if do_reply else []
factor = 0.5
cnt = sum([len(r) for r in response_set])
await asyncio.sleep(max(1, factor * cnt - 3)) # 等待tts
# 等待一段时间再检查队列
await asyncio.sleep(1)