From 9e8d650cbd2692433ed4011552edbe407b3999f7 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: Wed, 14 Aug 2024 00:56:42 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=8F=90=E9=AB=98=E5=AF=B9trss?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/onebot/action/go-cqhttp/SetModelShow.ts | 10 ++++++++++ src/onebot/action/index.ts | 4 +++- src/onebot/action/types.ts | 3 ++- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 src/onebot/action/go-cqhttp/SetModelShow.ts diff --git a/src/onebot/action/go-cqhttp/SetModelShow.ts b/src/onebot/action/go-cqhttp/SetModelShow.ts new file mode 100644 index 00000000..be648e17 --- /dev/null +++ b/src/onebot/action/go-cqhttp/SetModelShow.ts @@ -0,0 +1,10 @@ +import BaseAction from '../BaseAction'; +import { ActionName } from '../types'; + +export default class SetModelShow extends BaseAction { + actionName = ActionName.SetModelShow; + + async _handle(payload: null): Promise { + return null; + } +} diff --git a/src/onebot/action/index.ts b/src/onebot/action/index.ts index 736f1618..c5dcdf72 100644 --- a/src/onebot/action/index.ts +++ b/src/onebot/action/index.ts @@ -77,6 +77,7 @@ import { NapCatCore } from '@/core'; import { NapCatOneBot11Adapter } from '@/onebot'; import GetGuildProfile from './guild/GetGuildProfile'; +import SetModelShow from './go-cqhttp/SetModelShow'; export type ActionMap = Map>; @@ -162,7 +163,8 @@ export function createActionMap(onebotContext: NapCatOneBot11Adapter, coreContex new SetGroupHeader(onebotContext, coreContext), new FetchCustomFace(onebotContext, coreContext), new GoCQHTTPUploadPrivateFile(onebotContext, coreContext), - new GetGuildProfile(onebotContext, coreContext) + new GetGuildProfile(onebotContext, coreContext), + new SetModelShow(onebotContext, coreContext), ]; const actionMap = new Map(); for (const action of actionHandlers) { diff --git a/src/onebot/action/types.ts b/src/onebot/action/types.ts index 8ea51880..161b4470 100644 --- a/src/onebot/action/types.ts +++ b/src/onebot/action/types.ts @@ -105,5 +105,6 @@ export enum ActionName { GOCQHTTP_UploadPrivateFile = 'upload_private_file', TestApi01 = 'test_api_01', FetchEmojiLike = 'fetch_emoji_like', - GetGuildProfile = "get_guild_service_profile" + GetGuildProfile = "get_guild_service_profile", + SetModelShow = "_set_model_show" }