Jump to content
McKay Development

JAHMCR

Member
  • Posts

    7
  • Joined

  • Last visited

Everything posted by JAHMCR

  1. Got it, yeah I'm using the SteamUser instance in the constructor, so I'll leave it as default. Thank you very much!
  2. Hey! I'm having issues polling the trade offers, it usually works when I start the bot but not when I send a trade offer while the bot is running. This is my tradeOfferManager config: this.tradeOfferManager = new TradeOfferManager({ steam: this.client, community: this.community, language: "en", pollInterval: 1000, pollFullUpdateInterval: 2000, cancelTime: 600000 }); Any ideas or suggestions? Update: Added a "pollFailure" listener and I am now seeing this error: Error: HTTP error 429 What's the recommended poll interval for trade offers to prevent exceeding this limit? Thanks!
  3. Yeah, that makes sense. Will have to implement my own function to retrieve the inventory using "IEconItems_440". Thanks!
  4. I'm trying to filter "backpack.tf" listings based on an inventory items, but I'm not sure how to get a "defindex" or any other way to map the item from CEconItem. I know the Steam WebAPI provides a "IEconItems_440" method to get the player items with relevant information like a "defindex", is there any special reason why you are not using this?
  5. Just replaced "SteamID.fromIndividualAccountID(76561198024816553)" with "76561198024816553" for testing and it worked fine, was I using "SteamID.fromIndividualAccountID()" wrong?
  6. Hey! I'm getting 401 every time I try to call this function to get an user inventory, any ideas of what could be wrong? getUserInventoryContents(440, 2, true, SteamID.fromIndividualAccountID(76561198024816553)) This is the console error log Error: HTTP error 401 at SteamCommunity._checkHttpError (/Users/user/Desktop/SteamTradeBot/node_modules/steamcommunity/components/http.js:108:9) at Request._callback (/Users/user/Desktop/SteamTradeBot/node_modules/steamcommunity/components/http.js:50:61) at self.callback (/Users/user/Desktop/SteamTradeBot/node_modules/request/request.js:185:22) at Request.emit (node:events:518:28) at Request.emit (node:domain:488:12) at Request.<anonymous> (/Users/user/Desktop/SteamTradeBot/node_modules/request/request.js:1154:10) at Request.emit (node:events:518:28) at Request.emit (node:domain:488:12) at Gunzip.<anonymous> (/Users/user/Desktop/SteamTradeBot/node_modules/request/request.js:1076:12) at Object.onceWrapper (node:events:632:28) { code: 401 } The function "getInventoryContents" works fine though. Thanks
×
×
  • Create New...