Skip to content

Commit c41b0eb

Browse files
committed
🔊 添加状态转变意愿相关日志
1 parent ce12589 commit c41b0eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/nonebot_plugin_nyaturingtest/session.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,12 +689,17 @@ def __feedback_stage(
689689
)
690690
# 评估转换到状态0的概率
691691
idle_chance = response_dict["willing"][0]
692+
logger.debug(f"nyabot潜水意愿:{idle_chance}")
692693
# 评估转换到状态1的概率
693694
bubble_chance = response_dict["willing"][1]
695+
logger.debug(f"nyabot冒泡意愿:{bubble_chance}")
694696
# 评估转换到状态2的概率
695697
chat_chance = response_dict["willing"][2]
698+
logger.debug(f"nyabot对话意愿:{chat_chance}")
696699

697700
random_value = random.uniform(0.0, 1.0)
701+
logger.debug(f"意愿转变随机值:{random_value}")
702+
698703
match self.__chatting_state:
699704
case _ChattingState.ILDE:
700705
if random_value > chat_chance:

0 commit comments

Comments
 (0)