events system init

This commit is contained in:
UnCLASPrommer
2025-07-15 23:20:18 +08:00
parent 02f674494c
commit b104178bd7
5 changed files with 42 additions and 23 deletions

View File

@@ -0,0 +1,19 @@
from abc import ABC, abstractmethod
from typing import List, Dict, Type
class BaseEventsPlugin(ABC):
"""
事件触发型插件基类
所有事件触发型插件都应该继承这个基类而不是 BasePlugin
"""
@property
@abstractmethod
def plugin_name(self) -> str:
return "" # 插件内部标识符(如 "hello_world_plugin"
@property
@abstractmethod
def enable_plugin(self) -> bool:
return False