This commit is contained in:
tursom 2024-10-14 11:25:57 +08:00
parent 66cccc6603
commit f9015a5391

View File

@ -55,12 +55,17 @@ try {
steamID: config.steamID,
});
}
let webLogOn = false;
steamUser.on('loggedOn', async () => {
logger.info(`login to Steam as ${steamUser.steamID}`);
steamUser.webLogOn();
if (!webLogOn) {
steamUser.webLogOn();
}
});
steamUser.on('webSession', async (sessionID, cookies) => {
webLogOn = true;
steamCommunity.setCookies(cookies);
steamCommunity.startConfirmationChecker(10000, config.identitySecret);
});