feat: info support

This commit is contained in:
Soulter 2023-05-14 17:12:12 +08:00
parent e5afd9a582
commit f0dc8d9c57

View File

@ -39,6 +39,24 @@ class HelloWorldPlugin:
return True, tuple([True, "Hello World!!", "helloworld"])
else:
return False, None
"""
帮助函数当用户输入 plugin v 插件名称 会调用此函数返回帮助信息
返回参数要求(必填)dict{
"name": str, # 插件名称
"desc": str, # 插件简短描述
"help": str, # 插件帮助信息
"version": str, # 插件版本
"author": str, # 插件作者
}
"""
def info(self):
return {
"name": "helloworld",
"desc": "测试插件",
"help": "测试插件, 回复helloworld即可触发",
"version": "v1.0.1 beta",
"author": "Soulter"
}
# 热知识:检测消息开头指令,使用以下方法