TheMaster Posted February 12 Report Posted February 12 (edited) hey i am facing asame error to waht the antals bot has sometimes after running for a while the steam trade offer manager shows that error: not logged in now my question is is it the steam login that has been expired > if yes then how to check for it that if we are logged in or not because the auto relogin is already enabled by default so it should not cause any problem right but it appearently is Edited February 12 by Dr. McKay Fixed formatting to make text readable Quote
Dr. McKay Posted February 12 Report Posted February 12 It depends on how you're logging into Steam. Quote
TheMaster Posted February 12 Author Report Posted February 12 i am loggin on using the logon method by providing my accname pass and the guard code generated by steam totp and then sending the client to steam tradeoffermanager Quote
Dr. McKay Posted February 12 Report Posted February 12 So you're using steam-user? You can check if the steamID property is set to a non-null value, which will indicate that you're still logged in. But from the sound of things, you're running into expired cookies. Your web session cookies expire from time to time and need to be refreshed using steam-user's webLogOn() method. Quote
TheMaster Posted February 12 Author Report Posted February 12 where should i place this check? according to one example i saw from some one waht he did he tried to send a offer when the steam tradeoffer manager returned the error not logged in what he did was called this method is this the correct way? steamReLogin(steam) { // If we don't have a steam id at all, we need to re-login, otherwise we can just re-weblogin if (!this.clients[steam.accountName].steamID) { this.steamLogin(steam); } else { this.clients[steam.accountName].webLogOn(); } } Quote
Dr. McKay Posted February 13 Report Posted February 13 Yeah, that looks fine. But ordinarily it shouldn't ever be possible for your SteamUser client to disconnect without you being aware of it, since the error event will be emitted. 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.