From 07689adfcd140921eabc9d414dbe3ccc6ac9dff2 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: Sat, 12 Oct 2024 15:36:30 +0800 Subject: [PATCH] fix --- config.json | 1 - src/onebot/action/group/GroupPoke.ts | 2 +- src/onebot/action/index.ts | 2 ++ src/onebot/action/types.ts | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 config.json diff --git a/config.json b/config.json deleted file mode 100644 index 23fc8d11..00000000 --- a/config.json +++ /dev/null @@ -1 +0,0 @@ -{"ip": "127.0.0.1", "port": 8086} \ No newline at end of file diff --git a/src/onebot/action/group/GroupPoke.ts b/src/onebot/action/group/GroupPoke.ts index 84d4996a..6f960776 100644 --- a/src/onebot/action/group/GroupPoke.ts +++ b/src/onebot/action/group/GroupPoke.ts @@ -14,7 +14,7 @@ const SchemaData = { type Payload = FromSchema; export class GroupPoke extends BaseAction { - actionName = ActionName.GetGroupList; + actionName = ActionName.GroupPoke; payloadSchema = SchemaData; async _handle(payload: Payload) { diff --git a/src/onebot/action/index.ts b/src/onebot/action/index.ts index edbeffb1..6bb72665 100644 --- a/src/onebot/action/index.ts +++ b/src/onebot/action/index.ts @@ -84,6 +84,7 @@ import { GetGroupFileSystemInfo } from '@/onebot/action/go-cqhttp/GetGroupFileSy import { GetGroupRootFiles } from '@/onebot/action/go-cqhttp/GetGroupRootFiles'; import { GetGroupFilesByFolder } from '@/onebot/action/go-cqhttp/GetGroupFilesByFolder'; import { GetGroupSystemMsg } from './system/GetSystemMsg'; +import { GroupPoke } from './group/GroupPoke'; export type ActionMap = Map>; @@ -180,6 +181,7 @@ export function createActionMap(obContext: NapCatOneBot11Adapter, core: NapCatCo new GetGroupFilesByFolder(obContext, core), new GetGroupSystemMsg(obContext, core), new FetchUserProfileLike(obContext, core), + new GroupPoke(obContext, core), ]; const actionMap = new Map(); for (const action of actionHandlers) { diff --git a/src/onebot/action/types.ts b/src/onebot/action/types.ts index 77c153f8..7ad25cbc 100644 --- a/src/onebot/action/types.ts +++ b/src/onebot/action/types.ts @@ -16,6 +16,7 @@ export interface InvalidCheckResult { export enum ActionName { // 以下为扩展napcat扩展 Unknown = 'unknown', + GroupPoke = 'group_poke', SharePeer = 'ArkSharePeer', ShareGroupEx = 'ArkShareGroup', RebootNormal = 'reboot_normal',//无快速登录重新启动