refactor: 恢复插件事件调用

This commit is contained in:
RockChinQ
2024-01-30 21:45:17 +08:00
parent e2de3d0102
commit 33d600fb6b
10 changed files with 298 additions and 86 deletions

View File

@@ -3,7 +3,7 @@ from __future__ import annotations
import typing
from .context import BasePlugin as Plugin
from . import events
from .events import *
def register(
name: str,
@@ -15,7 +15,7 @@ def register(
def on(
event: typing.Type[events.BaseEventModel]
event: typing.Type[BaseEventModel]
) -> typing.Callable[[typing.Callable], typing.Callable]:
pass