-
Posts
7 -
Joined
-
Last visited
Posts posted by DentFuse
-
-
Okay so update on my bot, couldn't get the sessionExpired thing working,tried .relog(), .webLogOn(), .LogOn(), still couldn't get it working, so I just attached the bot to forever, so like when ever it crashes due to sessionExpired, it just restarts it. Happens once a day, so that's not much of a problem, but yeah, thanks you for answers
PS: I'll still try to get it working ;P
-
Follow that tutorial and make ur own bot...
-
Correct. When you're using steam-user, your "login" is a connection to the CM. It's completely distinct from your web session. When your web session expires but you're still connected you don't need to reconnect. Just get a new web session which requests new cookies from the CM.
Now I get error saying that we must be logged in steam before we can login in steamcommunity.com. Should I call my login func before webLogOn ?
-
What's the problem with waiting? Like u can't wait 10-30 sec? Cause the faster you'll ask steam for new confirmations, the more load you'll put on their servers, and the more they'll suspect ur account of being a bot. You know steam takes actions against bots right? (No hard feeling )
-
It's being called for a reason, and that reason is that your session expired.
I assume that you're getting your session from node-steam-user, and you're calling logOn when it expires. That's wrong, you should call webLogOn.
Hey there! Thanks for your reply, so do you mean to say that I don't have to log in again when the session expires, but just call webLogOn(which gets a new session from steam? That's what I understood when I was reading the docs of node-steam-community)So all I have to do is replace my login function with a call to webLogOn ?
PS: I knew it was being called because our session expired, but wasn't sure why it was not logging in again...
-
Hi all, So this is my code :
community.on('sessionExpired', (err) =>{ console.log("Session Expired !! Logging In Again...") if (a = 1) { a = 0 login(); } }); community.on('disconnected', (err) =>{ console.log("Disconnected !! Logging In Again...") if (a = 1) { a = 0 login(); } });
So what is happening is that the sessionExpired is being called but when the bot is trying to log in, it crashes with an error stating that we are already logged in and we cannot log in again, also sometimes the bot crashes with an error saying the session was replaced or something like that, sorry I don't exactly remember, will post log when it happens again.
Any help would be greatly appreciated
PS: I've added that var a to make sure that the login function is called only once, I change it back to 1 once we get the webapi key from steam.
Another problem with f**in' rate limits. Mobile confirmations
in node-steamcommunity
Posted
They use web sockets I guess, whenever a new trade request is created, it automatically send a command to the bot to accept trade offer with the tradeID.