配置文件更新

pull/937/head
Bakadax 2025-05-06 16:56:35 +08:00
parent 9cb1841fb6
commit 4ae0ef1ede
2 changed files with 5 additions and 5 deletions

View File

@ -275,7 +275,7 @@ class BotConfig:
enable_pfc_chatting: bool = False # 是否启用PFC聊天
# idle_conversation
enable_idle_conversation: bool = True # 是否启用 pfc 主动发言(未完善)
enable_idle_conversation: bool = False # 是否启用 pfc 主动发言(未完善)
idle_check_interval: int = 10 # 检查间隔10分钟检查一次
min_idle_time: int = 7200 # 最短无活动时间2小时 (7200秒)
max_idle_time: int = 18000 # 最长无活动时间5小时 (18000秒)
@ -667,7 +667,7 @@ class BotConfig:
def idle_conversation(parent: dict):
idle_conversation_config = parent["idle_conversation"]
if config.INNER_VERSION in SpecifierSet(">=1.6.2"):
if config.INNER_VERSION in SpecifierSet(">=1.6.3"):
config.enable_idle_conversation = idle_conversation_config.get(
"enable_idle_conversation", config.enable_idle_conversation
)
@ -710,7 +710,7 @@ class BotConfig:
"chat": {"func": chat, "support": ">=1.6.0", "necessary": False},
"normal_chat": {"func": normal_chat, "support": ">=1.6.0", "necessary": False},
"focus_chat": {"func": focus_chat, "support": ">=1.6.0", "necessary": False},
"idle_conversation": {"func": idle_conversation, "support": ">=1.6.2", "necessary": False},
"idle_conversation": {"func": idle_conversation, "support": ">=1.6.3", "necessary": False},
}
# 原地修改,将 字符串版本表达式 转换成 版本对象

View File

@ -1,5 +1,5 @@
[inner]
version = "1.6.2"
version = "1.6.3"
#----以下是给开发人员阅读的,如果你只是部署了麦麦,不需要阅读----
#如果你想要修改配置文件请在修改后将version的值进行变更
@ -190,7 +190,7 @@ talk_allowed_private = [] # 可以回复消息的QQ号
pfc_chatting = false # 是否启用PFC聊天该功能仅作用于私聊与回复模式独立
[idle_conversation]
enable_idle_conversation = true
enable_idle_conversation = false
idle_check_interval = 10 # 检查间隔10分钟检查一次
min_idle_time = 7200 # 最短无活动时间2小时 (7200秒)
max_idle_time = 18000 # 最长无活动时间5小时 (18000秒)