From 9518595e489ca5f2e58a11322ff294481da675ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 8 Aug 2024 20:59:18 +0800 Subject: [PATCH] chore: build Co-Authored-By: Wesley F. Young <25684570+Wesley-Young@users.noreply.github.com> --- src/liteloader/napcat.cjs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/liteloader/napcat.cjs b/src/liteloader/napcat.cjs index d5c1caab..e0d441a1 100644 --- a/src/liteloader/napcat.cjs +++ b/src/liteloader/napcat.cjs @@ -93,16 +93,17 @@ async function NCInit() { } console.log("[NapCat] [Info] NTQQ初始化成功"); console.log(getWrapperSession(), getWrapperLoginService()); + NCInit().then().catch(console.log); //NTCore.instance = new NTCoreWrapper(getWrapperNodeApi(), getWrapperSession()); // 挂载NTQQ 到 NapCat Core - let NCLoginListener = {}; - NCLoginListener.onQRCodeLoginSucceed = (arg) => { - //登录成功 登录成功立刻进入真正初始化 - console.log("[NapCat] [Info] UIN: ", arg.uin, " 登录成功!") - NCInit().then().catch(); - } + //let NCLoginListener = {}; + // NCLoginListener.onQRCodeLoginSucceed = (arg) => { + // //登录成功 登录成功立刻进入真正初始化 + // console.log("[NapCat] [Info] UIN: ", arg.uin, " 登录成功!") + // NCInit().then().catch(); + // } // 添加Login监听 - getWrapperLoginService().addKernelLoginListener(new (getWrapperNodeApi().NodeIKernelLoginListener)(new Proxy(NCLoginListener, proxyHandler))); + //getWrapperLoginService().addKernelLoginListener(new (getWrapperNodeApi().NodeIKernelLoginListener)(new Proxy(NCLoginListener, proxyHandler))); //await import("file://" + path.join(CurrentPath, './napcat.mjs')); })(); \ No newline at end of file