diff --git a/src/onebot/main.ts b/src/onebot/main.ts index 78c2ccad..8f11c994 100644 --- a/src/onebot/main.ts +++ b/src/onebot/main.ts @@ -55,7 +55,7 @@ export class NapCatOneBot11Adapter { FriendApi: new OneBotFriendApi(this, core), }; this.networkManager = new OB11NetworkManager(); - this.InitOneBot(); + this.InitOneBot().then().catch(e => this.context.logger.logError('初始化OneBot失败', e)); } async InitOneBot() {