refactor: async Init

This commit is contained in:
手瓜一十雪 committed 2024-11-14 10:36:51 +08:00
1 parent f6067b002f
commit cbf98ffb89
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ export async function NCoreInitFramework(
//启动WebUi //启动WebUi
InitWebUi(logger, pathWrapper).then().catch(logger.logError.bind(logger)); InitWebUi(logger, pathWrapper).then().catch(logger.logError.bind(logger));
//初始化LLNC的Onebot实现 //初始化LLNC的Onebot实现
new NapCatOneBot11Adapter(loaderObject.core, loaderObject.context, pathWrapper); new NapCatOneBot11Adapter(loaderObject.core, loaderObject.context, pathWrapper).InitOneBot();
} }
export class NapCatFramework { export class NapCatFramework {
+1 -1
View File
@@ -300,7 +300,7 @@ export async function NCoreInitShell() {
selfInfo, selfInfo,
basicInfoWrapper, basicInfoWrapper,
pathWrapper, pathWrapper,
); ).InitNapCat();
} }
export class NapCatShell { export class NapCatShell {