From 20e360ccb749327413b9fedbbb74418ef022a574 Mon Sep 17 00:00:00 2001 From: shiinawhitee Date: Sun, 6 Apr 2025 04:02:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8F=AA=E8=AF=BB=E7=BE=A4?= =?UTF-8?q?=E7=BB=84=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=BC=8F=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/config/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/config/config.py b/src/plugins/config/config.py index 5b58f2d5..bd4105f5 100644 --- a/src/plugins/config/config.py +++ b/src/plugins/config/config.py @@ -145,6 +145,7 @@ class BotConfig: # group talk_allowed_groups = set() talk_frequency_down_groups = set() + talk_read_only = set() # 只读取消息但不回复的群组 ban_user_id = set() # personality @@ -578,6 +579,8 @@ class BotConfig: groups_config = parent["groups"] config.talk_allowed_groups = set(groups_config.get("talk_allowed", [])) config.talk_frequency_down_groups = set(groups_config.get("talk_frequency_down", [])) + if config.INNER_VERSION in SpecifierSet(">=1.2.5"): + config.talk_read_only = set(groups_config.get("talk_read_only", [])) config.ban_user_id = set(groups_config.get("ban_user_id", [])) def platforms(parent: dict):