mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix: path
This commit is contained in:
10
src/plugin/index.ts
Normal file
10
src/plugin/index.ts
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user