调整代码
This commit is contained in:
@@ -19,7 +19,6 @@ from message_util import MessageUtil # 导入消息工具类
|
|||||||
|
|
||||||
class GroupMemberChangePlugin(MessagePluginInterface):
|
class GroupMemberChangePlugin(MessagePluginInterface):
|
||||||
"""群成员变更监控插件"""
|
"""群成员变更监控插件"""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self) -> str:
|
def name(self) -> str:
|
||||||
return "群成员变更监控"
|
return "群成员变更监控"
|
||||||
@@ -36,6 +35,18 @@ class GroupMemberChangePlugin(MessagePluginInterface):
|
|||||||
def author(self) -> str:
|
def author(self) -> str:
|
||||||
return "Trae AI"
|
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):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.status = PluginStatus.LOADED
|
self.status = PluginStatus.LOADED
|
||||||
|
|||||||
Reference in New Issue
Block a user