From 351743068a12e9bafdb953cc9fad029693aff28d Mon Sep 17 00:00:00 2001 From: Expliyh Date: Thu, 16 May 2024 22:15:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=98=AF=E5=90=A6=E5=90=AF=E7=94=A8satori?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index ec582b1d..7265f6c4 100644 --- a/main.py +++ b/main.py @@ -12,7 +12,10 @@ if __name__ == "__mp_main__": static_config = load_from_yaml("config.yml") store_config.update(static_config) nonebot.init(**store_config) - adapters = [v11.Adapter, v12.Adapter, satori.Adapter] + if not store_config['enable_satori']: + adapters = [v11.Adapter, v12.Adapter] + else: + adapters = [v11.Adapter, v12.Adapter, satori.Adapter] driver = nonebot.get_driver() for adapter in adapters: