Lagrange.RagBot/bot/plugins.ts
2024-06-01 02:14:46 +08:00

32 lines
530 B
TypeScript

import * as Lagrange from './type';
class Plugins {
registeredPlugins: Map<string, Function>;
constructor() {
}
public register() {
return function(target: any, propertyKey: string, descriptor: PropertyDecorator) {
}
}
public use(name: string) {
return function(target: any, propertyKey: string, descriptor: PropertyDecorator) {
}
}
}
const plugins = new Plugins();
export default plugins;
class Impl {
echo(message: Lagrange.CommonMessage) {
}
}