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: