Jump to content
McKay Development

KiTa

Member
  • Posts

    11
  • Joined

  • Last visited

  1. I have configured my bot to generate the steam guard app code for the login method. Everything seems fine, but then after a while the bot asks for the code again. Is there a listener for this?
  2. It seems this is also an issue with steam as the TradeOffer class is returning an http error.
  3. Sorry I learned js from a Java teacher, but this is meant to debug not the actual solution right?
  4. 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(); } }); });
  5. 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)
  6. My forever instance restarted the script a lot of times now steam is rate limiting me, what should I do?
  7. 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?
  8. 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 )
  9. 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?
  10. It's not a necessity but if it could be it'd allow for faster trade confirmations on restart
  11. 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)); });
×
×
  • Create New...