优化代码,删除无效代码
This commit is contained in:
@@ -3,12 +3,9 @@ from typing import Dict, Any, List, Optional, Tuple
|
||||
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
import dacite
|
||||
|
||||
from plugin_common.message_plugin_interface import MessagePluginInterface
|
||||
from plugin_common.plugin_interface import PluginStatus
|
||||
from utils.robot_cmd.robot_command import Feature, PermissionStatus, GroupBotManager
|
||||
from message_util import MessageUtil # 导入消息工具类
|
||||
from wechat_ipad import WechatAPIClient
|
||||
|
||||
|
||||
@@ -50,9 +47,6 @@ class GroupMemberChangePlugin(MessagePluginInterface):
|
||||
"""初始化插件"""
|
||||
self.LOG.info(f"正在初始化 {self.name} 插件...")
|
||||
|
||||
# 创建消息工具实例message_util
|
||||
self.message_util: MessageUtil = context.get("message_util")
|
||||
|
||||
self.LOG.info(f"{self.name} 插件初始化完成")
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user