
KiTa
Member-
Posts
11 -
Joined
-
Last visited
Everything posted by KiTa
-
Question Cannot read property 'escrowDays' of undefined
KiTa replied to KiTa's topic in node-steam-tradeoffer-manager
It seems this is also an issue with steam as the TradeOffer class is returning an http error. -
Question Cannot read property 'escrowDays' of undefined
KiTa replied to KiTa's topic in node-steam-tradeoffer-manager
Sorry I learned js from a Java teacher, but this is meant to debug not the actual solution right? -
Question Cannot read property 'escrowDays' of undefined
KiTa replied to KiTa's topic in node-steam-tradeoffer-manager
manager.on('newOffer', function(offer) { console.log("New offer #" + offer.id + " from " + offer.partner.getSteam3RenderedID()); offer.getUserDetails(function(err, me, them) { if (them.escrowDays <= 0) { if (offer.partner.getSteamID64() == config.owner) { offer.accept(function(err) { if (err) { console.log("Unable to accept offer: " + err.message); } else { community.checkConfirmations(); // Check for confirmations right after accepting the offer console.log("Offer from master accepted"); } }); } else if (offer.itemsToGive.length == 0 && !offer.isGlitched()) { offer.accept(function(err) { if (err) { console.log("Unable to accept offer: " + err.message); } else { community.checkConfirmations(); // Check for confirmations right after accepting the offer console.log("Gift from " + offer.partner.getSteamID64() + " accepted"); } }); } else { validate(offer, function(accept, report) { if (accept) { offer.accept(function(err) { if (err) { console.log("Unable to accept offer: " + err.message); } else { community.checkConfirmations(); // Check for confirmations right after accepting the offer console.log("Offer from " + offer.partner.getSteamID64() + " accepted"); } }); } else if (report) { console.log("Reporting trade #" + offer.id); } else { offer.decline(); } }); } } else { offer.decline(); } }); }); -
For some reason I consistently get this error after receiving a trade offer. steam_bot.js:217 if (them.escrowDays <= 0) { ^ TypeError: Cannot read property 'escrowDays' of undefined at /home/teslim/steam-bot/steam_bot.js:217:17 at Object.exports.makeAnError (/home/teslim/steam-bot/node_modules/steam-tradeoffer-manager/lib/helpers.js:33:4) at manager._community.httpRequestGet (/home/teslim/steam-bot/node_modules/steam-tradeoffer-manager/lib/classes/TradeOffer.js:752:12) at SteamCommunity._checkCommunityError (/home/teslim/steam-bot/node_modules/steamcommunity/components/http.js:129:3) at Request._callback (/home/teslim/steam-bot/node_modules/steamcommunity/components/http.js:51:88) at Request.self.callback (/home/teslim/steam-bot/node_modules/request/request.js:187:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (/home/teslim/steam-bot/node_modules/request/request.js:1044:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7)
-
My forever instance restarted the script a lot of times now steam is rate limiting me, what should I do?
-
How would i get a trade item's instance id?
KiTa replied to KiTa's topic in node-steam-tradeoffer-manager
In my use case i'd only like to know if the items being traded are case keys or not, even then would instanceid be a bad idea? -
How would i get a trade item's instance id?
KiTa replied to KiTa's topic in node-steam-tradeoffer-manager
Found this in https://github.com/DoctorMcKay/node-steamcommunity/wiki/CEconItem after looping through the offer's items you can get them all. (Didn't realize the docs doubled as a rabbit hole ) -
It seems all csgo items have instance ids unique to their types such as all keys have the instance id of "143865972" and all R8 Revolver | Bone Mask (Well-Worn) have an instance id of 302028390. How would I get this info from a trade offer?
-
It's not a necessity but if it could be it'd allow for faster trade confirmations on restart
-
When my bot attempts to accept a trade confirmation I get this weird error confirmations.js:327 var existing = this._confirmationKeys[tag]; ^ TypeError: Cannot read property 'conf' of undefined This is what I believe triggers it community.on('confKeyNeeded', function (tag, callback) { var time = Math.floor(Date.now() / 1000); callback(null, time, SteamTotp.getConfirmationKey(config.identity_secret, time, tag)); });