diff --git a/jsconfig.json b/jsconfig.json deleted file mode 100644 index cd2cc6f..0000000 --- a/jsconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": ".", - "paths": { - "#Karin": [ - "./lib/index.js" - ] - } - }, - "exclude": [ - "**/node_modules/*", - "resources", - "temp", - "data" - ], - "include": [ - "./**/*.js" - ] -} \ No newline at end of file diff --git a/src/event/message.handler.ts b/src/event/message.handler.ts index a3dc646..ad0717f 100644 --- a/src/event/message.handler.ts +++ b/src/event/message.handler.ts @@ -76,7 +76,7 @@ export class MessageHandler extends EventHandler { if (app.file.type === 'function' && typeof v.fnc === 'function') { res = await v.fnc(this.e) } else { - const cla = new (app.file.Fnc as NewMessagePlugin)() + const cla = new (app.file.Fnc as NewMessagePlugin)(this.e) cla.e = this.e res = await (cla[v.fnc as keyof typeof cla] as Function)(this.e) as Promise }