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',//无快速登录重新启动