diff --git a/src/core/packet/utils/crypto/sha1StreamBytesTransform.ts b/src/core/packet/utils/crypto/sha1StreamBytesTransform.ts index c6e229db..95f743fa 100644 --- a/src/core/packet/utils/crypto/sha1StreamBytesTransform.ts +++ b/src/core/packet/utils/crypto/sha1StreamBytesTransform.ts @@ -3,7 +3,7 @@ import { Sha1Stream } from "@/core/packet/utils/crypto/sha1Stream"; export class CalculateStreamBytesTransform extends stream.Transform { private readonly blockSize = 1024 * 1024; - private sha1: Sha1Stream; + private readonly sha1: Sha1Stream; private buffer: Buffer; private bytesRead: number; private readonly byteArrayList: Buffer[]; diff --git a/src/onebot/action/extends/GetProfileLike.ts b/src/onebot/action/extends/GetProfileLike.ts index c6faf3f1..38e12e49 100644 --- a/src/onebot/action/extends/GetProfileLike.ts +++ b/src/onebot/action/extends/GetProfileLike.ts @@ -1,5 +1,5 @@ import BaseAction from '../BaseAction'; -import { ActionName, BaseCheckResult } from '../types'; +import { ActionName } from '../types'; interface Payload { start: number, diff --git a/src/onebot/action/extends/SetInputStatus.ts b/src/onebot/action/extends/SetInputStatus.ts index 9890cb40..db694b07 100644 --- a/src/onebot/action/extends/SetInputStatus.ts +++ b/src/onebot/action/extends/SetInputStatus.ts @@ -1,7 +1,7 @@ import { FromSchema, JSONSchema } from 'json-schema-to-ts'; import BaseAction from '../BaseAction'; -import { ActionName, BaseCheckResult } from '../types'; -import { ChatType, Peer } from '@/core'; +import { ActionName } from '../types'; +import { ChatType } from '@/core'; const SchemaData = { type: 'object', @@ -9,7 +9,7 @@ const SchemaData = { event_type: { type: 'number' }, user_id: { type: ['number', 'string'] }, }, - required: ['event_type','user_id'], + required: ['event_type', 'user_id'], } as const satisfies JSONSchema; type Payload = FromSchema; diff --git a/src/onebot/action/group/SendGroupAiRecord.ts b/src/onebot/action/group/SendGroupAiRecord.ts index a766c881..74f9d43f 100644 --- a/src/onebot/action/group/SendGroupAiRecord.ts +++ b/src/onebot/action/group/SendGroupAiRecord.ts @@ -26,7 +26,7 @@ export class SendGroupAiRecord extends GetPacketStatusDepends