From 38be90450cbc7973b0064e461e7d620671533b93 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, 6 Nov 2024 16:48:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=BC=E5=AE=B9gocq=E6=A0=87?= =?UTF-8?q?=E5=87=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/onebot/action/extends/SetGroupSign.ts | 3 +++ src/onebot/action/index.ts | 3 ++- src/onebot/action/types.ts | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/onebot/action/extends/SetGroupSign.ts b/src/onebot/action/extends/SetGroupSign.ts index 9e87446b..7854e57c 100644 --- a/src/onebot/action/extends/SetGroupSign.ts +++ b/src/onebot/action/extends/SetGroupSign.ts @@ -20,3 +20,6 @@ export class SetGroupSign extends BaseAction { return await this.core.apis.PacketApi.sendGroupSignPacket(payload.group_id); } } +export class SendGroupSign extends SetGroupSign { + actionName = ActionName.SendGroupSign; +} \ No newline at end of file diff --git a/src/onebot/action/index.ts b/src/onebot/action/index.ts index 72b96d9e..ecdd2418 100644 --- a/src/onebot/action/index.ts +++ b/src/onebot/action/index.ts @@ -92,7 +92,7 @@ import { GetGroupFileUrl } from "@/onebot/action/file/GetGroupFileUrl"; import { GetPacketStatus } from "@/onebot/action/packet/GetPacketStatus"; import { FriendPoke } from "@/onebot/action/user/FriendPoke"; import { GetCredentials } from './system/GetCredentials'; -import { SetGroupSign } from './extends/SetGroupSign'; +import { SendGroupSign, SetGroupSign } from './extends/SetGroupSign'; import { GoCQHTTPGetGroupAtAllRemain } from './go-cqhttp/GetGroupAtAllRemain'; import { GoCQHTTPCheckUrlSafely } from './go-cqhttp/GoCQHTTPCheckUrlSafely'; import { GoCQHTTPGetModelShow } from './go-cqhttp/GoCQHTTPGetModelShow'; @@ -125,6 +125,7 @@ export function createActionMap(obContext: NapCatOneBot11Adapter, core: NapCatCo new TranslateEnWordToZn(obContext, core), new GetGroupRootFiles(obContext, core), new SetGroupSign(obContext, core), + new SendGroupSign(obContext, core), // onebot11 new SendLike(obContext, core), new GetMsg(obContext, core), diff --git a/src/onebot/action/types.ts b/src/onebot/action/types.ts index effd446a..05907312 100644 --- a/src/onebot/action/types.ts +++ b/src/onebot/action/types.ts @@ -136,6 +136,8 @@ export enum ActionName { GetGroupIgnoredNotifies = 'get_group_ignored_notifies', SetGroupSign = "set_group_sign", + SendGroupSign = "send_group_sign", + GetMiniAppArk = "get_mini_app_ark", // UploadForwardMsg = "upload_forward_msg", GetAiRecord = "get_ai_record",