mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
chore: run a full eslint
This commit is contained in:
@@ -17,7 +17,7 @@ import GetStatus from './system/GetStatus';
|
||||
import {
|
||||
GoCQHTTPSendForwardMsg,
|
||||
GoCQHTTPSendGroupForwardMsg,
|
||||
GoCQHTTPSendPrivateForwardMsg
|
||||
GoCQHTTPSendPrivateForwardMsg,
|
||||
} from './go-cqhttp/SendForwardMsg';
|
||||
import GoCQHTTPGetStrangerInfo from './go-cqhttp/GetStrangerInfo';
|
||||
import SendLike from './user/SendLike';
|
||||
@@ -78,86 +78,86 @@ import { NapCatOneBot11Adapter } from '../main';
|
||||
|
||||
export function createActionMap(onebotContext: NapCatOneBot11Adapter, coreContext: NapCatCore) {
|
||||
const actionHandlers = [
|
||||
new FetchEmojiLike(onebotContext,coreContext),
|
||||
new GetFile(onebotContext,coreContext),
|
||||
new SetSelfProfile(onebotContext,coreContext),
|
||||
new shareGroupEx(onebotContext,coreContext),
|
||||
new sharePeer(onebotContext,coreContext),
|
||||
new CreateCollection(onebotContext,coreContext),
|
||||
new SetLongNick(onebotContext,coreContext),
|
||||
new ForwardFriendSingleMsg(onebotContext,coreContext),
|
||||
new ForwardGroupSingleMsg(onebotContext,coreContext),
|
||||
new MarkGroupMsgAsRead(onebotContext,coreContext),
|
||||
new MarkPrivateMsgAsRead(onebotContext,coreContext),
|
||||
new SetQQAvatar(onebotContext,coreContext),
|
||||
new TranslateEnWordToZn(onebotContext,coreContext),
|
||||
new GetGroupFileCount(onebotContext,coreContext),
|
||||
new GetGroupFileList(onebotContext,coreContext),
|
||||
new SetGroupFileFolder(onebotContext,coreContext),
|
||||
new DelGroupFile(onebotContext,coreContext),
|
||||
new DelGroupFileFolder(onebotContext,coreContext),
|
||||
new FetchEmojiLike(onebotContext, coreContext),
|
||||
new GetFile(onebotContext, coreContext),
|
||||
new SetSelfProfile(onebotContext, coreContext),
|
||||
new shareGroupEx(onebotContext, coreContext),
|
||||
new sharePeer(onebotContext, coreContext),
|
||||
new CreateCollection(onebotContext, coreContext),
|
||||
new SetLongNick(onebotContext, coreContext),
|
||||
new ForwardFriendSingleMsg(onebotContext, coreContext),
|
||||
new ForwardGroupSingleMsg(onebotContext, coreContext),
|
||||
new MarkGroupMsgAsRead(onebotContext, coreContext),
|
||||
new MarkPrivateMsgAsRead(onebotContext, coreContext),
|
||||
new SetQQAvatar(onebotContext, coreContext),
|
||||
new TranslateEnWordToZn(onebotContext, coreContext),
|
||||
new GetGroupFileCount(onebotContext, coreContext),
|
||||
new GetGroupFileList(onebotContext, coreContext),
|
||||
new SetGroupFileFolder(onebotContext, coreContext),
|
||||
new DelGroupFile(onebotContext, coreContext),
|
||||
new DelGroupFileFolder(onebotContext, coreContext),
|
||||
// onebot11
|
||||
new SendLike(onebotContext,coreContext),
|
||||
new GetMsg(onebotContext,coreContext),
|
||||
new GetLoginInfo(onebotContext,coreContext),
|
||||
new GetFriendList(onebotContext,coreContext),
|
||||
new GetGroupList(onebotContext,coreContext),
|
||||
new GetGroupInfo(onebotContext,coreContext),
|
||||
new GetGroupMemberList(onebotContext,coreContext),
|
||||
new GetGroupMemberInfo(onebotContext,coreContext),
|
||||
new SendGroupMsg(onebotContext,coreContext),
|
||||
new SendPrivateMsg(onebotContext,coreContext),
|
||||
new SendMsg(onebotContext,coreContext),
|
||||
new DeleteMsg(onebotContext,coreContext),
|
||||
new SetGroupAddRequest(onebotContext,coreContext),
|
||||
new SetFriendAddRequest(onebotContext,coreContext),
|
||||
new SetGroupLeave(onebotContext,coreContext),
|
||||
new GetVersionInfo(onebotContext,coreContext),
|
||||
new CanSendRecord(onebotContext,coreContext),
|
||||
new CanSendImage(onebotContext,coreContext),
|
||||
new GetStatus(onebotContext,coreContext),
|
||||
new SetGroupWholeBan(onebotContext,coreContext),
|
||||
new SetGroupBan(onebotContext,coreContext),
|
||||
new SetGroupKick(onebotContext,coreContext),
|
||||
new SetGroupAdmin(onebotContext,coreContext),
|
||||
new SetGroupName(onebotContext,coreContext),
|
||||
new SetGroupCard(onebotContext,coreContext),
|
||||
new GetImage(onebotContext,coreContext),
|
||||
new GetRecord(onebotContext,coreContext),
|
||||
new SetMsgEmojiLike(onebotContext,coreContext),
|
||||
new GetCookies(onebotContext,coreContext),
|
||||
new SetOnlineStatus(onebotContext,coreContext),
|
||||
new GetRobotUinRange(onebotContext,coreContext),
|
||||
new GetFriendWithCategory(onebotContext,coreContext),
|
||||
new SendLike(onebotContext, coreContext),
|
||||
new GetMsg(onebotContext, coreContext),
|
||||
new GetLoginInfo(onebotContext, coreContext),
|
||||
new GetFriendList(onebotContext, coreContext),
|
||||
new GetGroupList(onebotContext, coreContext),
|
||||
new GetGroupInfo(onebotContext, coreContext),
|
||||
new GetGroupMemberList(onebotContext, coreContext),
|
||||
new GetGroupMemberInfo(onebotContext, coreContext),
|
||||
new SendGroupMsg(onebotContext, coreContext),
|
||||
new SendPrivateMsg(onebotContext, coreContext),
|
||||
new SendMsg(onebotContext, coreContext),
|
||||
new DeleteMsg(onebotContext, coreContext),
|
||||
new SetGroupAddRequest(onebotContext, coreContext),
|
||||
new SetFriendAddRequest(onebotContext, coreContext),
|
||||
new SetGroupLeave(onebotContext, coreContext),
|
||||
new GetVersionInfo(onebotContext, coreContext),
|
||||
new CanSendRecord(onebotContext, coreContext),
|
||||
new CanSendImage(onebotContext, coreContext),
|
||||
new GetStatus(onebotContext, coreContext),
|
||||
new SetGroupWholeBan(onebotContext, coreContext),
|
||||
new SetGroupBan(onebotContext, coreContext),
|
||||
new SetGroupKick(onebotContext, coreContext),
|
||||
new SetGroupAdmin(onebotContext, coreContext),
|
||||
new SetGroupName(onebotContext, coreContext),
|
||||
new SetGroupCard(onebotContext, coreContext),
|
||||
new GetImage(onebotContext, coreContext),
|
||||
new GetRecord(onebotContext, coreContext),
|
||||
new SetMsgEmojiLike(onebotContext, coreContext),
|
||||
new GetCookies(onebotContext, coreContext),
|
||||
new SetOnlineStatus(onebotContext, coreContext),
|
||||
new GetRobotUinRange(onebotContext, coreContext),
|
||||
new GetFriendWithCategory(onebotContext, coreContext),
|
||||
//以下为go-cqhttp api
|
||||
new GetOnlineClient(onebotContext,coreContext),
|
||||
new OCRImage(onebotContext,coreContext),
|
||||
new IOCRImage(onebotContext,coreContext),
|
||||
new GetGroupHonorInfo(onebotContext,coreContext),
|
||||
new SendGroupNotice(onebotContext,coreContext),
|
||||
new GetGroupNotice(onebotContext,coreContext),
|
||||
new GetGroupEssence(onebotContext,coreContext),
|
||||
new GoCQHTTPSendForwardMsg(onebotContext,coreContext),
|
||||
new GoCQHTTPSendGroupForwardMsg(onebotContext,coreContext),
|
||||
new GoCQHTTPSendPrivateForwardMsg(onebotContext,coreContext),
|
||||
new GoCQHTTPGetStrangerInfo(onebotContext,coreContext),
|
||||
new GoCQHTTPDownloadFile(onebotContext,coreContext),
|
||||
new GetGuildList(onebotContext,coreContext),
|
||||
new GoCQHTTPMarkMsgAsRead(onebotContext,coreContext),
|
||||
new GoCQHTTPUploadGroupFile(onebotContext,coreContext),
|
||||
new GoCQHTTPGetGroupMsgHistory(onebotContext,coreContext),
|
||||
new GoCQHTTPGetForwardMsgAction(onebotContext,coreContext),
|
||||
new GetFriendMsgHistory(onebotContext,coreContext),
|
||||
new GoCQHTTPHandleQuickAction(onebotContext,coreContext),
|
||||
new GetGroupSystemMsg(onebotContext,coreContext),
|
||||
new DelEssenceMsg(onebotContext,coreContext),
|
||||
new SetEssenceMsg(onebotContext,coreContext),
|
||||
new GetRecentContact(onebotContext,coreContext),
|
||||
new MarkAllMsgAsRead(onebotContext,coreContext),
|
||||
new GetProfileLike(onebotContext,coreContext),
|
||||
new SetGroupHeader(onebotContext,coreContext),
|
||||
new FetchCustomFace(onebotContext,coreContext),
|
||||
new GoCQHTTPUploadPrivateFile(onebotContext,coreContext)
|
||||
new GetOnlineClient(onebotContext, coreContext),
|
||||
new OCRImage(onebotContext, coreContext),
|
||||
new IOCRImage(onebotContext, coreContext),
|
||||
new GetGroupHonorInfo(onebotContext, coreContext),
|
||||
new SendGroupNotice(onebotContext, coreContext),
|
||||
new GetGroupNotice(onebotContext, coreContext),
|
||||
new GetGroupEssence(onebotContext, coreContext),
|
||||
new GoCQHTTPSendForwardMsg(onebotContext, coreContext),
|
||||
new GoCQHTTPSendGroupForwardMsg(onebotContext, coreContext),
|
||||
new GoCQHTTPSendPrivateForwardMsg(onebotContext, coreContext),
|
||||
new GoCQHTTPGetStrangerInfo(onebotContext, coreContext),
|
||||
new GoCQHTTPDownloadFile(onebotContext, coreContext),
|
||||
new GetGuildList(onebotContext, coreContext),
|
||||
new GoCQHTTPMarkMsgAsRead(onebotContext, coreContext),
|
||||
new GoCQHTTPUploadGroupFile(onebotContext, coreContext),
|
||||
new GoCQHTTPGetGroupMsgHistory(onebotContext, coreContext),
|
||||
new GoCQHTTPGetForwardMsgAction(onebotContext, coreContext),
|
||||
new GetFriendMsgHistory(onebotContext, coreContext),
|
||||
new GoCQHTTPHandleQuickAction(onebotContext, coreContext),
|
||||
new GetGroupSystemMsg(onebotContext, coreContext),
|
||||
new DelEssenceMsg(onebotContext, coreContext),
|
||||
new SetEssenceMsg(onebotContext, coreContext),
|
||||
new GetRecentContact(onebotContext, coreContext),
|
||||
new MarkAllMsgAsRead(onebotContext, coreContext),
|
||||
new GetProfileLike(onebotContext, coreContext),
|
||||
new SetGroupHeader(onebotContext, coreContext),
|
||||
new FetchCustomFace(onebotContext, coreContext),
|
||||
new GoCQHTTPUploadPrivateFile(onebotContext, coreContext),
|
||||
];
|
||||
const actionMap = new Map<string, BaseAction<any, any>>();
|
||||
for (const action of actionHandlers) {
|
||||
|
Reference in New Issue
Block a user