This commit is contained in:
手瓜一十雪 2024-08-09 22:48:13 +08:00
parent 7e4ebd330c
commit 8a8aa0016e
2 changed files with 7 additions and 6 deletions

View File

@ -39,7 +39,7 @@ export async function NCoreInitLiteLoader(session: NodeIQQNTWrapperSession, logi
//启动WebUi
//初始化LLNC的Onebot实现
new NapCatOneBot11Adapter(loaderObject.core, loaderObject.context,pathWrapper);
new NapCatOneBot11Adapter(loaderObject.core, loaderObject.context, pathWrapper);
}
export class NapCatLiteLoader {

View File

@ -129,9 +129,8 @@ export async function NCoreInitShell() {
} else {
logger.log('没有 -q 指令指定快速登录,或未曾登录过这个 QQ将使用二维码登录方式');
if (historyLoginList.length > 0) {
logger.log(`可用于快速登录的 QQ\n${
historyLoginList.map((u, index) => `${index + 1}. ${u.uin} ${u.nickName}`).join('\n')
}`);
logger.log(`可用于快速登录的 QQ\n${historyLoginList.map((u, index) => `${index + 1}. ${u.uin} ${u.nickName}`).join('\n')
}`);
}
loginService.getQRCodePicture();
}
@ -177,7 +176,8 @@ export async function NCoreInitShell() {
logger,
loginService,
selfInfo,
basicInfoWrapper
basicInfoWrapper,
pathWrapper
);
}
@ -192,6 +192,7 @@ export class NapCatShell {
loginService: NodeIKernelLoginService,
selfInfo: SelfInfo,
basicInfoWrapper: QQBasicInfoWrapper,
pathWrapper: NapCatPathWrapper
) {
this.context = {
workingEnv: NapCatCoreWorkingEnv.Shell,
@ -203,7 +204,7 @@ export class NapCatShell {
};
this.core = new NapCatCore(this.context, selfInfo);
new NapCatOneBot11Adapter(this.core, this.context);
new NapCatOneBot11Adapter(this.core, this.context, pathWrapper);
}
}