调整代码
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user