From e731767dfac01a14124fa9d8d986f681696ca755 Mon Sep 17 00:00:00 2001 From: InfinityPacer <160988576+InfinityPacer@users.noreply.github.com> Date: Mon, 30 Sep 2024 10:33:20 +0800 Subject: [PATCH] feat(plugin): add PluginTriggered event type --- app/schemas/types.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/schemas/types.py b/app/schemas/types.py index 5dc30960..47096ebe 100644 --- a/app/schemas/types.py +++ b/app/schemas/types.py @@ -18,8 +18,10 @@ class TorrentStatus(Enum): class EventType(Enum): # 插件需要重载 PluginReload = "plugin.reload" - # 插件动作 + # 触发插件动作 PluginAction = "plugin.action" + # 插件触发事件 + PluginTriggered = "plugin.triggered" # 执行命令 CommandExcute = "command.excute" # 站点已删除