From d3a025ef7b364cfba8a9b6c562b1b9b1c4bf4280 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, 18 May 2024 14:40:46 +0800 Subject: [PATCH] build: 1.3.5-beta35 --- .../action/go-cqhttp/{QuickOperation.ts => QuickAction.ts} | 4 ++-- src/onebot11/action/index.ts | 4 +++- src/onebot11/action/types.ts | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) rename src/onebot11/action/go-cqhttp/{QuickOperation.ts => QuickAction.ts} (77%) diff --git a/src/onebot11/action/go-cqhttp/QuickOperation.ts b/src/onebot11/action/go-cqhttp/QuickAction.ts similarity index 77% rename from src/onebot11/action/go-cqhttp/QuickOperation.ts rename to src/onebot11/action/go-cqhttp/QuickAction.ts index c41c72745..094cee000 100644 --- a/src/onebot11/action/go-cqhttp/QuickOperation.ts +++ b/src/onebot11/action/go-cqhttp/QuickAction.ts @@ -8,8 +8,8 @@ interface Payload{ operation: QuickAction } -export class GoCQHTTHandleQuickOperation extends BaseAction{ - actionName = ActionName.GoCQHTTP_HandleQuickOperation +export class GoCQHTTHandleQuickAction extends BaseAction{ + actionName = ActionName.GoCQHTTP_HandleQuickAction protected async _handle(payload: Payload): Promise { handleQuickOperation(payload.context, payload.operation).then().catch(log); return null diff --git a/src/onebot11/action/index.ts b/src/onebot11/action/index.ts index 080a8edf8..368b56acd 100644 --- a/src/onebot11/action/index.ts +++ b/src/onebot11/action/index.ts @@ -56,6 +56,7 @@ import { GetFriendWithCategory } from './extends/GetFriendWithCategory'; import { SendGroupNotice } from './go-cqhttp/SendGroupNotice'; import { Reboot, RebootNormol } from './system/Reboot'; import { GetGroupHonorInfo } from './go-cqhttp/GetGroupHonorInfo'; +import { GoCQHTTHandleQuickAction } from './go-cqhttp/QuickAction'; export const actionHandlers = [ new RebootNormol(), @@ -116,7 +117,8 @@ export const actionHandlers = [ new GoCQHTTPUploadGroupFile(), new GoCQHTTPGetGroupMsgHistory(), new GoCQHTTGetForwardMsgAction(), - new GetFriendMsgHistory() + new GetFriendMsgHistory(), + new GoCQHTTHandleQuickAction() ]; function initActionMap() { diff --git a/src/onebot11/action/types.ts b/src/onebot11/action/types.ts index a4b231bad..b8f39c02d 100644 --- a/src/onebot11/action/types.ts +++ b/src/onebot11/action/types.ts @@ -60,7 +60,7 @@ export enum ActionName { CleanCache = 'clean_cache', GetCookies = 'get_cookies', // 以下为go-cqhttp api - GoCQHTTP_HandleQuickOperation = ".handle_quick_operation", + GoCQHTTP_HandleQuickAction = ".handle_quick_operation", GetGroupHonorInfo = 'get_group_honor_info', GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list', GoCQHTTP_SendGroupNotice = '_send_group_notice',