feat: 装饰器与装饰器路由注册

This commit is contained in:
手瓜一十雪
2025-11-14 19:49:13 +08:00
parent 36aa08a8f5
commit 5043a49779
13 changed files with 233 additions and 28 deletions

View File

@@ -0,0 +1,6 @@
import { OneBotAction } from './OneBotAction';
export const AutoRegisterRouter: Array<new (...args: any[]) => OneBotAction<unknown, unknown>> = [];
export function ActionHandler(target: new (...args: any[]) => OneBotAction<unknown, unknown>) {
AutoRegisterRouter.push(target);
}