mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-05 15:11:15 +00:00
refactor: async Init
This commit is contained in:
parent
5b7f241d61
commit
bf6a101a13
@ -59,7 +59,7 @@ export async function NCoreInitFramework(
|
||||
//启动WebUi
|
||||
InitWebUi(logger, pathWrapper).then().catch(logger.logError.bind(logger));
|
||||
//初始化LLNC的Onebot实现
|
||||
new NapCatOneBot11Adapter(loaderObject.core, loaderObject.context, pathWrapper);
|
||||
new NapCatOneBot11Adapter(loaderObject.core, loaderObject.context, pathWrapper).InitOneBot();
|
||||
}
|
||||
|
||||
export class NapCatFramework {
|
||||
|
||||
@ -300,7 +300,7 @@ export async function NCoreInitShell() {
|
||||
selfInfo,
|
||||
basicInfoWrapper,
|
||||
pathWrapper,
|
||||
);
|
||||
).InitNapCat();
|
||||
}
|
||||
|
||||
export class NapCatShell {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user