From ecde2427da1c9f2ab96dfcd3381a3ae051b52d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 12 Dec 2024 09:37:51 +0800 Subject: [PATCH] fix: path --- src/onebot/network/plugin.ts | 2 +- src/{core => }/plugin/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/{core => }/plugin/index.ts (92%) 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') {