mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
build: 1.3.5-beta35
This commit is contained in:
parent
c466df841e
commit
d3a025ef7b
@ -8,8 +8,8 @@ interface Payload{
|
|||||||
operation: QuickAction
|
operation: QuickAction
|
||||||
}
|
}
|
||||||
|
|
||||||
export class GoCQHTTHandleQuickOperation extends BaseAction<Payload, null>{
|
export class GoCQHTTHandleQuickAction extends BaseAction<Payload, null>{
|
||||||
actionName = ActionName.GoCQHTTP_HandleQuickOperation
|
actionName = ActionName.GoCQHTTP_HandleQuickAction
|
||||||
protected async _handle(payload: Payload): Promise<null> {
|
protected async _handle(payload: Payload): Promise<null> {
|
||||||
handleQuickOperation(payload.context, payload.operation).then().catch(log);
|
handleQuickOperation(payload.context, payload.operation).then().catch(log);
|
||||||
return null
|
return null
|
@ -56,6 +56,7 @@ import { GetFriendWithCategory } from './extends/GetFriendWithCategory';
|
|||||||
import { SendGroupNotice } from './go-cqhttp/SendGroupNotice';
|
import { SendGroupNotice } from './go-cqhttp/SendGroupNotice';
|
||||||
import { Reboot, RebootNormol } from './system/Reboot';
|
import { Reboot, RebootNormol } from './system/Reboot';
|
||||||
import { GetGroupHonorInfo } from './go-cqhttp/GetGroupHonorInfo';
|
import { GetGroupHonorInfo } from './go-cqhttp/GetGroupHonorInfo';
|
||||||
|
import { GoCQHTTHandleQuickAction } from './go-cqhttp/QuickAction';
|
||||||
|
|
||||||
export const actionHandlers = [
|
export const actionHandlers = [
|
||||||
new RebootNormol(),
|
new RebootNormol(),
|
||||||
@ -116,7 +117,8 @@ export const actionHandlers = [
|
|||||||
new GoCQHTTPUploadGroupFile(),
|
new GoCQHTTPUploadGroupFile(),
|
||||||
new GoCQHTTPGetGroupMsgHistory(),
|
new GoCQHTTPGetGroupMsgHistory(),
|
||||||
new GoCQHTTGetForwardMsgAction(),
|
new GoCQHTTGetForwardMsgAction(),
|
||||||
new GetFriendMsgHistory()
|
new GetFriendMsgHistory(),
|
||||||
|
new GoCQHTTHandleQuickAction()
|
||||||
];
|
];
|
||||||
|
|
||||||
function initActionMap() {
|
function initActionMap() {
|
||||||
|
@ -60,7 +60,7 @@ export enum ActionName {
|
|||||||
CleanCache = 'clean_cache',
|
CleanCache = 'clean_cache',
|
||||||
GetCookies = 'get_cookies',
|
GetCookies = 'get_cookies',
|
||||||
// 以下为go-cqhttp api
|
// 以下为go-cqhttp api
|
||||||
GoCQHTTP_HandleQuickOperation = ".handle_quick_operation",
|
GoCQHTTP_HandleQuickAction = ".handle_quick_operation",
|
||||||
GetGroupHonorInfo = 'get_group_honor_info',
|
GetGroupHonorInfo = 'get_group_honor_info',
|
||||||
GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list',
|
GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list',
|
||||||
GoCQHTTP_SendGroupNotice = '_send_group_notice',
|
GoCQHTTP_SendGroupNotice = '_send_group_notice',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user