chore: better log

This commit is contained in:
pk5ls20
2024-11-05 13:52:56 +08:00
parent 9b448b17e6
commit 017b8b7f15
5 changed files with 11 additions and 19 deletions

View File

@@ -48,14 +48,9 @@ export class NTQQPacketApi {
this.core = core;
this.logger = core.context.logger;
this.packetSession = undefined;
const config = this.core.configLoader.configData;
if (config) {
this.InitSendPacket(this.context.basicInfoWrapper.getFullQQVesion())
.then()
.catch(this.core.context.logger.logError.bind(this.core.context.logger));
} else {
this.core.context.logger.logWarn('PacketServer未配置NapCat.Packet将不会加载');
}
this.InitSendPacket(this.context.basicInfoWrapper.getFullQQVesion())
.then()
.catch(this.core.context.logger.logError.bind(this.core.context.logger));
}
get available(): boolean {