refactor: Shell Init

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

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;