Jump to content
McKay Development

Recommended Posts

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.

 

Link to comment
Share on other sites

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