Merge pull request #1019 from ShinKanji/dev

让普通聊天模式下,提及 bot 必然回复的选项起作用
This commit is contained in:
tcmofashi
2025-06-03 18:38:11 +08:00
committed by GitHub

View File

@@ -250,7 +250,7 @@ class NormalChat:
return return
timing_results = {} timing_results = {}
reply_probability = 1.0 if is_mentioned else 0.0 # 如果被提及基础概率为1否则需要意愿判断 reply_probability = 1.0 if is_mentioned and global_config.normal_chat.mentioned_bot_inevitable_reply else 0.0 # 如果被提及,且开启了提及必回复,则基础概率为1否则需要意愿判断
# 意愿管理器设置当前message信息 # 意愿管理器设置当前message信息
willing_manager.setup(message, self.chat_stream, is_mentioned, interested_rate) willing_manager.setup(message, self.chat_stream, is_mentioned, interested_rate)