调整代码

This commit is contained in:
liuwei
2025-04-27 10:21:45 +08:00
parent 6c7a705a38
commit 5c5d9595e4

View File

@@ -19,7 +19,6 @@ from message_util import MessageUtil # 导入消息工具类
class GroupMemberChangePlugin(MessagePluginInterface):
"""群成员变更监控插件"""
@property
def name(self) -> str:
return "群成员变更监控"
@@ -36,6 +35,18 @@ class GroupMemberChangePlugin(MessagePluginInterface):
def author(self) -> str:
return "Trae AI"
def start(self) -> bool:
"""启动插件"""
self.LOG.info(f"[{self.name}] 插件已启动")
self.status = PluginStatus.RUNNING
return True
def stop(self) -> bool:
"""停止插件"""
self.LOG.info(f"[{self.name}] 插件已停止")
self.status = PluginStatus.STOPPED
return True
def __init__(self):
super().__init__()
self.status = PluginStatus.LOADED