Blue Posted July 4, 2017 Report Posted July 4, 2017 I have already changed the promptSteamGuardCode to false, and maked a steamGuard handler this.getCode(shared, function(code) { callback({ "accountName": login, "password": pw, "twoFactorCode": code, "rememberPassword":true, "promptSteamGuardCode": false }); }); client.on('steamGuard', function(domain, callback) { helper.getCode(config.sharedse, function(code){ callback(code); }); });But sometimes i still got the Steam app code request, and i have to restart the node.. Quote
Dr. McKay Posted July 4, 2017 Report Posted July 4, 2017 promptSteamGuardCode is an option that must be set in the constructor, not in the logOn call. Quote
tacyarg Posted July 5, 2017 Report Posted July 5, 2017 function login() { if (tryingLogin) return console.log('Already attempting login, try again later.') tryingLogin = true try { user.logOn({ accountName: bot.username, password: bot.password, twoFactorCode: SteamTotp.getAuthCode(bot.shared_secret) }) bot.stats.logins += 1 tryingLogin = false setStatus('online') } catch (e) { tryingLogin = false console.error('Failed to run weblogon method.') assert(!e, `login failed: ${e.message}`) } } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.