Update mai_state_manager.py
This commit is contained in:
@@ -189,6 +189,11 @@ class MaiStateManager:
|
|||||||
next_state = random.choices(choices_list, weights=weights, k=1)[0]
|
next_state = random.choices(choices_list, weights=weights, k=1)[0]
|
||||||
logger.debug(f"深入聊天结束,接下来 {next_state.value}")
|
logger.debug(f"深入聊天结束,接下来 {next_state.value}")
|
||||||
|
|
||||||
|
|
||||||
|
if enable_unlimited_hfc_chat:
|
||||||
|
logger.debug("调试用:开挂了,强制切换到专注聊天")
|
||||||
|
next_state = MaiState.FOCUSED_CHAT
|
||||||
|
|
||||||
# 如果决定了下一个状态,且这个状态与当前状态不同,则返回下一个状态
|
# 如果决定了下一个状态,且这个状态与当前状态不同,则返回下一个状态
|
||||||
if next_state is not None and next_state != current_status:
|
if next_state is not None and next_state != current_status:
|
||||||
return next_state
|
return next_state
|
||||||
|
|||||||
Reference in New Issue
Block a user