diff --git a/script/NapCat.Way01.bat b/script/NapCat.Way01.bat new file mode 100644 index 00000000..dd12843d --- /dev/null +++ b/script/NapCat.Way01.bat @@ -0,0 +1,3 @@ +REM 全新启动脚本 基于 Hook Native 预计版本1.6.0左右发布 +@echo off +pause \ No newline at end of file diff --git a/src/onebot11/main.ts b/src/onebot11/main.ts index 556bc2f3..dfaca699 100644 --- a/src/onebot11/main.ts +++ b/src/onebot11/main.ts @@ -37,8 +37,6 @@ import { Data as SysData } from '@/proto/SysMessage'; import { Data as DeviceData } from '@/proto/SysMessage.DeviceChange'; import { OB11FriendPokeEvent, OB11GroupPokeEvent } from './event/notice/OB11PokeEvent'; import { isEqual } from '@/common/utils/helper'; -import { MiniAppUtil } from '@/common/utils/Packet'; -import { RequestUtil } from '@/common/utils/request'; //下面几个其实应该移进Core-Data 缓存实现 但是现在在这里方便 // diff --git a/src/onebot11/server/http.ts b/src/onebot11/server/http.ts index ea3b6fdd..013989a0 100644 --- a/src/onebot11/server/http.ts +++ b/src/onebot11/server/http.ts @@ -1,12 +1,11 @@ import { Response } from 'express'; import { OB11Response } from '../action/OB11Response'; import { HttpServerBase } from '@/common/server/http'; -import { actionHandlers, actionMap } from '../action'; +import { actionMap } from '../action'; import { ob11Config } from '@/onebot11/config'; import { selfInfo } from '@/core/data'; import { OB11HeartbeatEvent } from '@/onebot11/event/meta/OB11HeartbeatEvent'; import { postOB11Event } from '@/onebot11/server/postOB11Event'; -import { napCatCore } from '@/core'; class OB11HTTPServer extends HttpServerBase { name = 'OneBot V11 server';