chore: better log

This commit is contained in:
pk5ls20 committed 2024-11-05 13:52:56 +08:00
1 parent 7f97c5beac
commit 8e069f9792
5 files changed
+11 -19

No files matched your search

+3 -8
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 {