diff --git a/src/onebot/network/plugin.ts b/src/onebot/network/plugin.ts index d16747c7..62b08d37 100644 --- a/src/onebot/network/plugin.ts +++ b/src/onebot/network/plugin.ts @@ -3,7 +3,7 @@ import { NapCatOneBot11Adapter, OB11Message } from '@/onebot'; import { NapCatCore } from '@/core'; import { ActionMap } from '../action'; import { AdapterConfig } from '../config/config'; -import { plugin_onmessage } from '@/core/plugin'; +import { plugin_onmessage } from '@/plugin'; export class OB11PluginAdapter implements IOB11NetworkAdapter { isEnable: boolean = true; diff --git a/src/core/plugin/index.ts b/src/plugin/index.ts similarity index 92% rename from src/core/plugin/index.ts rename to src/plugin/index.ts index bd8bd870..af167af4 100644 --- a/src/core/plugin/index.ts +++ b/src/plugin/index.ts @@ -1,6 +1,6 @@ import { NapCatOneBot11Adapter, OB11Message } from "@/onebot"; import SendGroupMsg from "@/onebot/action/group/SendGroupMsg"; -import { NapCatCore } from ".."; +import { NapCatCore } from "../core"; export const plugin_onmessage = async (adapter: string, core: NapCatCore, obCore: NapCatOneBot11Adapter, message: OB11Message) => { if (message.raw_message === 'ping') {