Jump to content
McKay Development


  • Content Count

  • Joined

  • Last visited

Recent Profile Visitors

88 profile views
  1. After doing offer.send(), I use this function : setTimeout(confirm2FA, 5000, offer.id, 0); function confirm2FA(offerID,tries) { return new Promise((resolve, reject) => { community.acceptConfirmationForObject(config.coinflip.identitySecret, offerID, (err) => { if (err) { if(tries < 2) { tries++; setTimeout(confirm2FA, 25000, offerID, tries); reject('Offer confirmation 2FA: ' + err); } else { console.log("couldnt confirm"); } } else { console.log("confirmed"); resolve(true); // Offer is confirmed by 2FA } }); }); } and I get rate limited (error 429) pretty often, what am I doing wrong? (It usually confirms on the 3rd time)
  2. Hello, How do I make my bot send trade offers to people, only if there is no trade-hold?
  3. Does steam-user npm provide this functionality?
  4. Hello, I have this code: community.on('sessionExpired', err => client.webLogOn()); ant it causes this error: Error: Cannot log onto steamcommunity.com without first being connected to Steam network 0|app | at SteamUser.webLogOn (/var/www/html/new_bot/node_modules/steam-user/components/web.js:10:9) What am I doing incorrectly?
  5. offer.send((err,status) => { if(err) { console.log(err); if(err.eresult != undefined && err.eresult != null) { if (err.eresult == 15) { *redisrem* *some math* refundPlayer(offerToSend.steamid64, balance); return false; } } *socket stuff* if(err.eresult != undefined && err.eresult != null) { *redisrem* setOfferStatus(offerToSend.id, 0, 'Steam error ' + err.eresult); //<--- This is the line where it always crashes. } else { *redisrem* } *some math* refundPlayer(offerToSend.steamid64,balance); } How can err be null in here?
  6. Sometimes when I make an offer, I get this error: 0|app | Error: Invalid input SteamID 0 0|app | at new TradeOffer (/var/www/html/new_bot/node_modules/steam-tradeoffe r-manager/lib/classes/TradeOffer.js:20:9) EDIT: Nevermind, I forgot to check if the user entered his trade-link.
  7. Thanks for the answer! I'm still having problems with eResult tho, the example that I showed in my post, doesn't seem to work. It says "TypeError: Cannot read property 'eresult' of null" But then also there's this:
  8. I got 1 more question: Is that the correct way to use isGlitched()?: offer.accept((err, status) => { if(err) { console.log(err); console.log(err.eresult); if(err.eresult == 15) { do somthing } if(offer.isGlitched()) { offer.decline(); } } Or should I check it before trying to accept it?
  9. What's the point of your acceptOffer() function? Just do offer.accept() Also, you need to check if the offer was accepted successfully. https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOffer#acceptskipstateupdate-callback Check stuff like "getExchangeDetails" out.
  10. Hello, so lets say if when sending an offer I get a steam error. Is it stored in eresult? If yes, would this be a correct way to retrieve it? Will it only return the number? (like 15 for access denied & etc)
  11. Even stranger things started hapenning: When I try to send an offer my bot, I get error 15. I tried waiting a few hours and sending again, but always the same error. (Same for a few of my friends) EDIT: Nevermind, TF2 actually has a 50 item limit, I didn't know that. It was the limit causing the problem.
  12. No, my TF2 inventory has like 20 items and I believe the limit is way higher?
  13. Hello, Sometimes my bot gets these errors and starts going in a loop when trying to accept the offer. I read the explanation here: https://steamerrors.com/25 But none of the things mentioned in there are true for me. Anyone else is having a similar issue?
  • Create New...