🤖 自动格式化代码 [skip ci]
This commit is contained in:
@@ -215,7 +215,9 @@ class InterestMonitorApp:
|
|||||||
# 获取 group_name,如果不存在则回退到 stream_id
|
# 获取 group_name,如果不存在则回退到 stream_id
|
||||||
group_name = subflow_entry.get("group_name", stream_id)
|
group_name = subflow_entry.get("group_name", stream_id)
|
||||||
# reply_probability = subflow_entry.get("reply_probability") # 获取概率值 # <-- 注释掉旧行
|
# reply_probability = subflow_entry.get("reply_probability") # 获取概率值 # <-- 注释掉旧行
|
||||||
start_hfc_probability = subflow_entry.get("start_hfc_probability") # <-- 添加新行,读取新字段
|
start_hfc_probability = subflow_entry.get(
|
||||||
|
"start_hfc_probability"
|
||||||
|
) # <-- 添加新行,读取新字段
|
||||||
|
|
||||||
# *** 检查必要的字段 ***
|
# *** 检查必要的字段 ***
|
||||||
# 注意:时间戳已在顶层检查过
|
# 注意:时间戳已在顶层检查过
|
||||||
|
|||||||
@@ -13,11 +13,9 @@ mai_state_config = LogConfig(
|
|||||||
logger = get_module_logger("mai_state_manager", config=mai_state_config)
|
logger = get_module_logger("mai_state_manager", config=mai_state_config)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
enable_unlimited_hfc_chat = False
|
enable_unlimited_hfc_chat = False
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class MaiState(enum.Enum):
|
class MaiState(enum.Enum):
|
||||||
"""
|
"""
|
||||||
聊天状态:
|
聊天状态:
|
||||||
@@ -37,7 +35,6 @@ class MaiState(enum.Enum):
|
|||||||
if enable_unlimited_hfc_chat:
|
if enable_unlimited_hfc_chat:
|
||||||
return 1000
|
return 1000
|
||||||
|
|
||||||
|
|
||||||
if self == MaiState.OFFLINE:
|
if self == MaiState.OFFLINE:
|
||||||
return 0
|
return 0
|
||||||
elif self == MaiState.PEEKING:
|
elif self == MaiState.PEEKING:
|
||||||
|
|||||||
Reference in New Issue
Block a user