去除初始化问题!

This commit is contained in:
liuwei
2025-03-20 16:02:54 +08:00
parent 5009a48adf
commit 2fcd12ca19
3 changed files with 1 additions and 28 deletions

View File

@@ -47,16 +47,9 @@ class GroupAddPlugin(MessagePluginInterface):
# 保存上下文对象
self.wcf = context.get("wcf")
if not self.wcf:
self.LOG.error("无法获取wcf对象插件初始化失败")
return False
# 获取群管理器
self.gbm = context.get("gbm")
if not self.gbm:
self.LOG.error("无法获取群管理器对象,插件初始化失败")
return False
# 从配置中获取启用状态
plugin_config = self._config.get("GroupAdd", {})
self.enable = plugin_config.get("enable", True)