chore: 移除废弃日志

This commit is contained in:
手瓜一十雪
2024-08-11 13:55:46 +08:00
parent d3897844ef
commit 6cf5d8cfdf
4 changed files with 8 additions and 8 deletions

View File

@@ -85,7 +85,7 @@ export class NapCatOneBot11Adapter {
await this.networkManager.registerAllActions(actions);
await this.networkManager.openAllAdapters();
await this.initMsgListener();
//未对shell版本兼容
// 未对shell版本兼容
// Mlikiowa V2.0.0 Refactor Todo
WebUiDataRuntime.setQQLoginUin(selfInfo.uin.toString());
WebUiDataRuntime.setQQLoginStatus(true);

View File

@@ -32,14 +32,14 @@ export class OB11NetworkManager {
}
async emitEvent(event: OB11EmitEventContent) {
console.log('adapters', this.adapters.length);
//console.log('adapters', this.adapters.length);
return Promise.all(this.adapters.map(adapter => adapter.onEvent(event)));
}
async registerAdapter(adapter: IOB11NetworkAdapter) {
console.log('Registering adapter:', adapter);
//console.log('Registering adapter:', adapter);
this.adapters.push(adapter);
console.log('Current adapters:', this.adapters.length);
//console.log('Current adapters:', this.adapters.length);
}
async closeSomeAdapters(adapters: IOB11NetworkAdapter[]) {
@@ -48,10 +48,10 @@ export class OB11NetworkManager {
}
async closeAllAdapters() {
console.log('Closing all adapters');
//console.log('Closing all adapters');
await Promise.all(this.adapters.map(adapter => adapter.close()));
this.adapters = [];
console.log('All adapters closed. Current adapters:', this.adapters.length);
//console.log('All adapters closed. Current adapters:', this.adapters.length);
}
}