Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MliKiowa committed Oct 12, 2024
1 parent 8f4f898 commit 07689ad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion config.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/onebot/action/group/GroupPoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const SchemaData = {
type Payload = FromSchema<typeof SchemaData>;

export class GroupPoke extends BaseAction<Payload, any> {
actionName = ActionName.GetGroupList;
actionName = ActionName.GroupPoke;
payloadSchema = SchemaData;

async _handle(payload: Payload) {
Expand Down
2 changes: 2 additions & 0 deletions src/onebot/action/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, BaseAction<any, any>>;
Expand Down Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions src/onebot/action/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface InvalidCheckResult {
export enum ActionName {
// 以下为扩展napcat扩展
Unknown = 'unknown',
GroupPoke = 'group_poke',
SharePeer = 'ArkSharePeer',
ShareGroupEx = 'ArkShareGroup',
RebootNormal = 'reboot_normal',//无快速登录重新启动
Expand Down

0 comments on commit 07689ad

Please sign in to comment.