This commit is contained in:
手瓜一十雪 committed 2024-08-09 22:48:13 +08:00
1 parent 7e4ebd330c
commit 8a8aa0016e
1 file changed
+5 -4
+5 -4
View File
@@ -129,8 +129,7 @@ export async function NCoreInitShell() {
} else { } else {
logger.log('没有 -q 指令指定快速登录,或未曾登录过这个 QQ,将使用二维码登录方式'); logger.log('没有 -q 指令指定快速登录,或未曾登录过这个 QQ,将使用二维码登录方式');
if (historyLoginList.length > 0) { if (historyLoginList.length > 0) {
logger.log(`可用于快速登录的 QQ:\n${ logger.log(`可用于快速登录的 QQ:\n${historyLoginList.map((u, index) => `${index + 1}. ${u.uin} ${u.nickName}`).join('\n')
historyLoginList.map((u, index) => `${index + 1}. ${u.uin} ${u.nickName}`).join('\n')
}`); }`);
} }
loginService.getQRCodePicture(); loginService.getQRCodePicture();
@@ -177,7 +176,8 @@ export async function NCoreInitShell() {
logger, logger,
loginService, loginService,
selfInfo, selfInfo,
basicInfoWrapper basicInfoWrapper,
pathWrapper
); );
} }
@@ -192,6 +192,7 @@ export class NapCatShell {
loginService: NodeIKernelLoginService, loginService: NodeIKernelLoginService,
selfInfo: SelfInfo, selfInfo: SelfInfo,
basicInfoWrapper: QQBasicInfoWrapper, basicInfoWrapper: QQBasicInfoWrapper,
pathWrapper: NapCatPathWrapper
) { ) {
this.context = { this.context = {
workingEnv: NapCatCoreWorkingEnv.Shell, workingEnv: NapCatCoreWorkingEnv.Shell,
@@ -203,7 +204,7 @@ export class NapCatShell {
}; };
this.core = new NapCatCore(this.context, selfInfo); this.core = new NapCatCore(this.context, selfInfo);
new NapCatOneBot11Adapter(this.core, this.context); new NapCatOneBot11Adapter(this.core, this.context, pathWrapper);
} }
} }