Gergo4961 Posted March 31, 2016 Report Posted March 31, 2016 Hello! Basically if my bot runs into a getEscrowDuration error it doesn't poll the same offer again unless I restart the bot, not even a manager.doPoll can fix the issue. I know the getEscrowDuration error is on Steam's fault but the manager completely ignores the offer even though it's active once it runs into that error. Here's my code: offer.getEscrowDuration(function(err, daysTheirEscrow, daysMyEscrow) { if(err) { console.log(err); client.webLogOn(); return; } I've only put the client.weblogOn there recently to make sure the bot has the right cookies when it fails to get the escrow duration, but then it doesn't go through the same offer until I restart it. Any help is appreciated! ~ Gergő Quote
Dr. McKay Posted March 31, 2016 Report Posted March 31, 2016 The event is emitted once per offer. If you encounter an error while processing it, it's your responsibility to queue it for later processing. Quote
Gergo4961 Posted March 31, 2016 Author Report Posted March 31, 2016 Yeah thanks, I just realized it would create a mess and it might just try to process the same offer twice, I'll just make it into a function! 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.