Jump to content
McKay Development

Recommended Posts

Posted

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..

Posted

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}`)
}
}

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...