mirror of https://github.com/Mai-with-u/MaiBot.git
Update mai_state_manager.py
parent
9967843740
commit
dc452fa69e
|
|
@ -189,6 +189,11 @@ class MaiStateManager:
|
|||
next_state = random.choices(choices_list, weights=weights, k=1)[0]
|
||||
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:
|
||||
return next_state
|
||||
|
|
|
|||
Loading…
Reference in New Issue