天气订阅功能优化

This commit is contained in:
liuwei
2025-12-17 13:15:07 +08:00
parent 6b52ed0fca
commit a1b9f615f2

View File

@@ -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: