Jump to content
McKay Development

GDA

Member
  • Posts

    11
  • Joined

  • Last visited

GDA's Achievements

  1. What attr do i need? As i get, this is not them.escrowDays
  2. Hi all! How do i track 15 days delay to user trade offer? (if because of user current trade will be hold for 15 days)
  3. Sorry, i read docs. Thanks. Also i changed my code, you can see it http://pastebin.com/jG62XM8u here. Now i got limiter and still have this issue. Upd. Maybe u need to know my bot is working under pm2 process manager.
  4. Sorry but I'm still having this issues. Full code here http://pastebin.com/t5jNbdUw
  5. I dont get it. Why i should rate-limit call to webLogOn if i need to refresh session when it expires? Also, do i need to stop confirmation checker in case when community gets sessionExpired? or it doesn't matter and i'll not lose any data or callbacks for confirmations?
  6. So my final code with solved issues would be looks like: var client = new SteamUser; var steam = new SteamCommunity(); var community = steam; // alias var app = express(); app.listen(app_settings.port, function () { console.log('App is running on ' + app_settings.port); }); var logOnOptions = credentials.getDefault(); client.logOn(logOnOptions); client.on('webSession', function(sessionID, cookies) { community.setCookies(cookies); manager.setCookies(cookies); community.startConfirmationChecker('10000', app_settings.identity_secret); }); client.on('disconnected', function(){ setTimeout(function(){ var logOnOptions = credentials.getDefault(); client.logOn(logOnOptions); }, 10000); }); community.on('sessionExpired', function(err) { community.stopConfirmationChecker(); client.webLogOn(); }); am i right?
  7. So what my steps? I need only authenticate SteamUser then put cookies which i'll get from callback to other clients such as steamcommunity? How can i check that my session/cookies expired? Are they with the same lifetime? When i need to stop and start confirmation checker with this conditions?
  8. Because SteamCommunity starts confirmation checker, and client creates a trade offer. Am i missing something?
  9. Hi there. Im developing steam trade-bot but i have one issue during mothes. I need to reboot my server manually because after 1-3 days i got "Error malformed response" or smth like this. I got my code sample, can u say me whats wrong? i'm tired of this var client = new SteamUser; var steam = new SteamCommunity(); var community = steam; // alias var app = express(); app.listen(app_settings.port, function () { console.log('App is running on ' + app_settings.port); }); var logOnOptions = credentials.getDefault(); client.logOn(logOnOptions); client.on('webSession', function(sessionID, cookies) { community.setCookies(cookies); manager.setCookies(cookies); community.startConfirmationChecker('10000', app_settings.identity_secret); }); client.on('disconnected', function(){ setTimeout(function(){ var logOnOptions = credentials.getDefault(); client.webLogOn(logOnOptions); }, 10000); }); community.on('sessionExpired', function(err) { var logOnOptions = credentials.getDefault(); community.login(logOnOptions, function(err, sessionID, cookies, steamguard){ if (err) { console.log("There was an error logging in! Error details: " + err.message); process.exit(1); //terminates program } else { console.log("Successfully logged in as " + logOnOptions.accountName); steam.chatLogon(); manager.setCookies(cookies, function(err) { if (err) { console.log(err); process.exit(1); } }); } }); });
×
×
  • Create New...