chore: build

Co-Authored-By: Wesley F. Young <25684570+Wesley-Young@users.noreply.github.com>
This commit is contained in:
手瓜一十雪 2024-08-08 20:59:18 +08:00
parent 3c4cd3743f
commit 9518595e48

View File

@ -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'));
})();