fix:配置名错误
This commit is contained in:
@@ -223,7 +223,7 @@ def is_mentioned_bot_in_message(message: SessionMessage) -> tuple[bool, bool, fl
|
|||||||
break
|
break
|
||||||
|
|
||||||
# 7) 概率设置
|
# 7) 概率设置
|
||||||
if is_at and getattr(global_config.chat, "at_bot_inevitable_reply", 1):
|
if is_at and getattr(global_config.chat, "inevitable_at_reply", 1):
|
||||||
reply_probability = 1.0
|
reply_probability = 1.0
|
||||||
logger.debug("被@,回复概率设置为100%")
|
logger.debug("被@,回复概率设置为100%")
|
||||||
elif is_mentioned and getattr(global_config.chat, "mentioned_bot_reply", 1):
|
elif is_mentioned and getattr(global_config.chat, "mentioned_bot_reply", 1):
|
||||||
|
|||||||
@@ -481,7 +481,7 @@ class MaisakaHeartFlowChatting:
|
|||||||
|
|
||||||
should_force_reply = (
|
should_force_reply = (
|
||||||
reply_probability_boost >= 1.0
|
reply_probability_boost >= 1.0
|
||||||
or (message.is_at and global_config.chat.at_bot_inevitable_reply)
|
or (message.is_at and global_config.chat.inevitable_at_reply)
|
||||||
or (message.is_mentioned and global_config.chat.mentioned_bot_reply)
|
or (message.is_mentioned and global_config.chat.mentioned_bot_reply)
|
||||||
)
|
)
|
||||||
if not should_force_reply or (not message.is_at and not message.is_mentioned):
|
if not should_force_reply or (not message.is_at and not message.is_mentioned):
|
||||||
|
|||||||
Reference in New Issue
Block a user