Merge pull request #1019 from ShinKanji/dev

让普通聊天模式下,提及 bot 必然回复的选项起作用
pull/1024/head
tcmofashi 2025-06-03 18:38:11 +08:00 committed by GitHub
commit 4aac4828ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ class NormalChat:
return
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信息
willing_manager.setup(message, self.chat_stream, is_mentioned, interested_rate)