diff --git a/src/core/apis/group.ts b/src/core/apis/group.ts index 818f7d03..59672604 100644 --- a/src/core/apis/group.ts +++ b/src/core/apis/group.ts @@ -2,7 +2,6 @@ import { ChatType, GeneralCallResult, Group, - GroupInfoSource, GroupMember, GroupMemberRole, GroupRequestOperateTypes, diff --git a/src/core/proto/EmojiLikeToOthers.ts b/src/core/proto/EmojiLikeToOthers.ts index f7dea30a..cc6da7f0 100644 --- a/src/core/proto/EmojiLikeToOthers.ts +++ b/src/core/proto/EmojiLikeToOthers.ts @@ -1,15 +1,15 @@ // @generated by protobuf-ts 2.9.4 // @generated from protobuf file "EmojiLikeToOthers.proto" (package "SysMessage", syntax proto3) // tslint:disable -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { IBinaryWriter } from "@protobuf-ts/runtime"; -import { WireType } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { IBinaryReader } from "@protobuf-ts/runtime"; -import { UnknownFieldHandler } from "@protobuf-ts/runtime"; -import type { PartialMessage } from "@protobuf-ts/runtime"; -import { reflectionMergePartial } from "@protobuf-ts/runtime"; -import { MessageType } from "@protobuf-ts/runtime"; +import type { + BinaryReadOptions, + BinaryWriteOptions, + IBinaryReader, + IBinaryWriter, + PartialMessage, +} from '@protobuf-ts/runtime'; +import { MessageType, reflectionMergePartial, UnknownFieldHandler, WireType } from '@protobuf-ts/runtime'; + /** * @generated from protobuf message SysMessage.EmojiLikeToOthersWrapper1 */ diff --git a/src/core/proto/GreyTipWrapper.ts b/src/core/proto/GreyTipWrapper.ts index ac1f5bc8..3c76a1e0 100644 --- a/src/core/proto/GreyTipWrapper.ts +++ b/src/core/proto/GreyTipWrapper.ts @@ -1,15 +1,15 @@ // @generated by protobuf-ts 2.9.4 // @generated from protobuf file "GreyTipWrapper.proto" (package "SysMessage", syntax proto3) // tslint:disable -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { IBinaryWriter } from "@protobuf-ts/runtime"; -import { WireType } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { IBinaryReader } from "@protobuf-ts/runtime"; -import { UnknownFieldHandler } from "@protobuf-ts/runtime"; -import type { PartialMessage } from "@protobuf-ts/runtime"; -import { reflectionMergePartial } from "@protobuf-ts/runtime"; -import { MessageType } from "@protobuf-ts/runtime"; +import type { + BinaryReadOptions, + BinaryWriteOptions, + IBinaryReader, + IBinaryWriter, + PartialMessage, +} from '@protobuf-ts/runtime'; +import { MessageType, reflectionMergePartial, UnknownFieldHandler, WireType } from '@protobuf-ts/runtime'; + /** * @generated from protobuf message SysMessage.GreyTipWrapper */ diff --git a/src/core/proto/SysMessage.ts b/src/core/proto/SysMessage.ts index a4606d3d..09bf02fe 100644 --- a/src/core/proto/SysMessage.ts +++ b/src/core/proto/SysMessage.ts @@ -1,15 +1,15 @@ // @generated by protobuf-ts 2.9.4 // @generated from protobuf file "SysMessage.proto" (package "SysMessage", syntax proto3) // tslint:disable -import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; -import type { IBinaryWriter } from "@protobuf-ts/runtime"; -import { WireType } from "@protobuf-ts/runtime"; -import type { BinaryReadOptions } from "@protobuf-ts/runtime"; -import type { IBinaryReader } from "@protobuf-ts/runtime"; -import { UnknownFieldHandler } from "@protobuf-ts/runtime"; -import type { PartialMessage } from "@protobuf-ts/runtime"; -import { reflectionMergePartial } from "@protobuf-ts/runtime"; -import { MessageType } from "@protobuf-ts/runtime"; +import type { + BinaryReadOptions, + BinaryWriteOptions, + IBinaryReader, + IBinaryWriter, + PartialMessage, +} from '@protobuf-ts/runtime'; +import { MessageType, reflectionMergePartial, UnknownFieldHandler, WireType } from '@protobuf-ts/runtime'; + /** * @generated from protobuf message SysMessage.SysMessage */ diff --git a/src/framework/napcat.ts b/src/framework/napcat.ts index 8da671fd..7be6b7e4 100644 --- a/src/framework/napcat.ts +++ b/src/framework/napcat.ts @@ -2,8 +2,7 @@ import { NapCatPathWrapper } from '@/common/path'; import { LogWrapper } from '@/common/log'; import { proxiedListenerOf } from '@/common/proxy-handler'; import { QQBasicInfoWrapper } from '@/common/qq-basic-info'; -import { loadQQWrapper, NapCatCore, NapCatCoreWorkingEnv } from '@/core'; -import { InstanceContext } from '@/core'; +import { InstanceContext, loadQQWrapper, NapCatCore, NapCatCoreWorkingEnv } from '@/core'; import { SelfInfo } from '@/core/entities'; import { NodeIKernelLoginListener } from '@/core/listeners'; import { NodeIKernelLoginService } from '@/core/services'; diff --git a/src/nekodoge/network/socket.ts b/src/nekodoge/network/socket.ts index 00f8b014..3adc5a49 100644 --- a/src/nekodoge/network/socket.ts +++ b/src/nekodoge/network/socket.ts @@ -1,4 +1,5 @@ import { createServer } from 'node:net'; + export class NewAdapterNetwork { constructor(public host: number, public port: number) { } async open() { @@ -11,8 +12,8 @@ export class NewAdapterNetwork { }); socket.on('connect', () => { - }) + }); }); server.listen(this.port, this.host); } -} \ No newline at end of file +} diff --git a/src/onebot/action/file/GetFile.ts b/src/onebot/action/file/GetFile.ts index b28464a8..ced880dc 100644 --- a/src/onebot/action/file/GetFile.ts +++ b/src/onebot/action/file/GetFile.ts @@ -2,7 +2,6 @@ import BaseAction from '../BaseAction'; import fs from 'fs/promises'; import { FileNapCatOneBotUUID } from '@/common/helper'; import { ActionName } from '../types'; -import { ChatType, Peer, RawMessage } from '@/core/entities'; import { FromSchema, JSONSchema } from 'json-schema-to-ts'; export interface GetFilePayload { diff --git a/src/onebot/action/go-cqhttp/GetGroupFileSystemInfo.ts b/src/onebot/action/go-cqhttp/GetGroupFileSystemInfo.ts index 96344756..79b2572c 100644 --- a/src/onebot/action/go-cqhttp/GetGroupFileSystemInfo.ts +++ b/src/onebot/action/go-cqhttp/GetGroupFileSystemInfo.ts @@ -1,7 +1,6 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; import BaseAction from '../BaseAction'; import { ActionName } from '../types'; -import { FileNapCatOneBotUUID } from '@/common/helper'; const SchemaData = { type: 'object', diff --git a/src/onebot/api/msg.ts b/src/onebot/api/msg.ts index 47655c9e..c6d6368f 100644 --- a/src/onebot/api/msg.ts +++ b/src/onebot/api/msg.ts @@ -9,7 +9,8 @@ import { FaceType, IdMusicSignPostData, MessageElement, - NapCatCore, NTGrayTipElementSubTypeV2, + NapCatCore, + NTGrayTipElementSubTypeV2, Peer, RawMessage, SendMessageElement, diff --git a/src/onebot/api/quick-action.ts b/src/onebot/api/quick-action.ts index b8c4c2f0..6ba910fb 100644 --- a/src/onebot/api/quick-action.ts +++ b/src/onebot/api/quick-action.ts @@ -10,12 +10,12 @@ import { QuickActionGroupMessage, QuickActionGroupRequest, } from '@/onebot'; -import { ChatType, GroupRequestOperateTypes, NapCatCore, Peer } from '@/core'; +import { GroupRequestOperateTypes, NapCatCore, Peer } from '@/core'; import { OB11FriendRequestEvent } from '@/onebot/event/request/OB11FriendRequest'; import { OB11GroupRequestEvent } from '@/onebot/event/request/OB11GroupRequest'; -import { ContextMode, normalize } from '@/onebot/action/msg/SendMsg'; +import { ContextMode, createContext, normalize } from '@/onebot/action/msg/SendMsg'; import { isNull } from '@/common/helper'; -import { createContext } from '@/onebot/action/msg/SendMsg'; + export class OneBotQuickActionApi { constructor( public obContext: NapCatOneBot11Adapter, diff --git a/src/shell/napcat.ts b/src/shell/napcat.ts index 01dc6aa7..31857baa 100644 --- a/src/shell/napcat.ts +++ b/src/shell/napcat.ts @@ -5,8 +5,8 @@ import { NodeIKernelLoginListener, NodeIKernelSessionListener } from '@/core/lis import { NodeIDependsAdapter, NodeIDispatcherAdapter, NodeIGlobalAdapter } from '@/core/adapters'; import { NapCatPathWrapper } from '@/common/path'; import { - InstanceContext, genSessionConfig, + InstanceContext, loadQQWrapper, NapCatCore, NapCatCoreWorkingEnv,