From 4ae0ef1ede8120bf66279a80876aa116d98b06f8 Mon Sep 17 00:00:00 2001 From: Bakadax Date: Tue, 6 May 2025 16:56:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/config.py | 6 +++--- template/bot_config_template.toml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/config/config.py b/src/config/config.py index cc2ebe60..c26a0636 100644 --- a/src/config/config.py +++ b/src/config/config.py @@ -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}, } # 原地修改,将 字符串版本表达式 转换成 版本对象 diff --git a/template/bot_config_template.toml b/template/bot_config_template.toml index 62947606..eb7ef184 100644 --- a/template/bot_config_template.toml +++ b/template/bot_config_template.toml @@ -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秒)