jafix Posted March 21, 2017 Report Posted March 21, 2017 This is the error I am getting. What am I doing wrong? I'm getting this error like 75% of the time. Quote
jafix Posted March 21, 2017 Author Report Posted March 21, 2017 I'm getting this error on logging in. Quote
Dr. McKay Posted March 21, 2017 Report Posted March 21, 2017 Then why are you trying to check confirmations as part of the login process? Show your code. Quote
jafix Posted March 22, 2017 Author Report Posted March 22, 2017 (edited) client.logOn(logOnOptions); client.on('loggedOn', () => { console.log('Logged into Steam (JafixBot2)'); client.setPersona(SteamUser.Steam.EPersonaState.Online); client.gamesPlayed('Trading Emoticons And Backgrounds'); client.chatMessage('76561198259000054', 'Logged in!') client.chatMessage('76561198178736621', 'Logged in!') community.startConfirmationChecker('20000', 'secret', function(err) { if (err) { throw err; } }); }); This is the code i use for logging in. Edited March 22, 2017 by jafix Quote
Dr. McKay Posted March 22, 2017 Report Posted March 22, 2017 You aren't logged into the website in the loggedOn event. Wait for webSession, call community.setCookies, then start the confirmation checker (although I advise against using it, it's better to just confirm as needed). 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.