fix: path

This commit is contained in:
手瓜一十雪
2024-12-12 09:37:51 +08:00
parent fed1ec5d83
commit ecde2427da
2 changed files with 2 additions and 2 deletions

10
src/plugin/index.ts Normal file
View File

@@ -0,0 +1,10 @@
import { NapCatOneBot11Adapter, OB11Message } from "@/onebot";
import SendGroupMsg from "@/onebot/action/group/SendGroupMsg";
import { NapCatCore } from "../core";
export const plugin_onmessage = async (adapter: string, core: NapCatCore, obCore: NapCatOneBot11Adapter, message: OB11Message) => {
if (message.raw_message === 'ping') {
const ret = await new SendGroupMsg(obCore, core).handle({ group_id: String(message.group_id), message: 'pong' }, adapter);
console.log(ret);
}
}