budysvk Posted May 18, 2017 Report Posted May 18, 2017 Hello. I would like to thanks everyone for helping me first. I am really glad. I have a problem with steam bot. The problem is that he logs in normally than refreshing sessions etc everything is okay but after 2 days or more when refreshing session i get error Invalid RSA key recieved and than it ends. So I need to start it manually again. community.on('sessionExpired', function(err) { if (err) { console.log('sessionExpired: '+err); } community.stopConfirmationChecker(); SteamTotp.getTimeOffset(function(err, offset, latency) { account.twoFactorCode = SteamTotp.generateAuthCode(account.shared_secret, offset); community.login(account, login); }); console.log('=========================REFRESHING SESSION========================='); }); There is my code. Thank you very much for fast reponse. 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.