Jump to content
McKay Development

DentFuse

Member
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    India
  • Interests
    Computers, and everything related to them :D

DentFuse's Achievements

  1. 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.
  2. 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
  3. 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 ?
  4. 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 )
  5. 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...
  6. 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.
×
×
  • Create New...