From a1b9f615f24cfbab04093b76be96eaf85da3f41c Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 17 Dec 2025 13:15:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A9=E6=B0=94=E8=AE=A2=E9=98=85=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/weather/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/weather/main.py b/plugins/weather/main.py index 82ae603..6951b75 100644 --- a/plugins/weather/main.py +++ b/plugins/weather/main.py @@ -111,6 +111,7 @@ class WeatherPlugin(MessagePluginInterface): self.plugin_dir = os.path.dirname(os.path.abspath(__file__)) self.feature = self.register_feature() self.redis_manager = None + self._config = {} self.bot_client = None self.task = None @@ -119,8 +120,6 @@ class WeatherPlugin(MessagePluginInterface): self.LOG = logger self.LOG.info(f"正在初始化 {self.name} 插件...") - self._config = context.get("config", {}) - # Redis 初始化 db_manager = context.get("db_manager") if db_manager: