15 lines
450 B
Python
15 lines
450 B
Python
from plugins.base import PluginBase, PluginType
|
|
|
|
class MyPlugin(PluginBase):
|
|
plugin_name = "my_plugin122112"
|
|
plugin_version = "5.0.0"
|
|
plugin_type = PluginType.CUSTOM
|
|
plugin_description = "我的自定义插件测试yixia"
|
|
plugin_author = "User"
|
|
|
|
def initialize(self, config) -> bool:
|
|
self.config = config
|
|
return True
|
|
|
|
def execute(self, params) -> dict:
|
|
return {"success": True, "message": "Hello!"} |