fix: path
This commit is contained in:
1 parent
fed1ec5d83
commit
ecde2427da
2 files changed
+2
-2
No files matched your search
@@ -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