refactor: Shell Init

This commit is contained in:
手瓜一十雪 committed 2024-11-14 10:34:38 +08:00
1 parent 285802b6bd
commit 5b7f241d61
2 files changed
+8 -7

No files matched your search

+1 -4
View File
@@ -72,11 +72,8 @@ export class NapCatOneBot11Adapter {
};
this.actions = createActionMap(this, core);
this.networkManager = new OB11NetworkManager();
// this.registerNative(core, context).catch(e => this.context.logger.logWarn.bind(this.context.logger)('初始化Native失败', e)).then();
this.InitOneBot()
.catch(e => this.context.logger.logError.bind(this.context.logger)('初始化OneBot失败', e));
}
async InitOneBot() {
const selfInfo = this.core.selfInfo;
const ob11Config = this.configLoader.configData;