Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3408
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. The amount parameter is only applicable for stackable items, like Steam gems. CS:GO keys are not stackable, so you will need to add the individual items separately.
  2. The inventory seems to be unlimited. Asset IDs do change on trade. Your code should always assume that an asset ID can change on trade.
  3. addMyItem takes one argument, which should be an object.
  4. No, "sign in through Steam" doesn't provide any kind of access to the user's Steam account. All it does is give you a verified SteamID.
  5. You should be able to send messages to non-friends if you're in a group chat with them, but that's about it I think.
  6. There's no concurrency concern with sending offers, but if you send offers too frequently (or you send too many offers) then Steam will start limiting you. You're limited to 30 total active outgoing offers, and 5 active outgoing offers to the same recipient. There are also request rate-limits.
  7. The createOffer method doesn't do anything on the network. It just creates a new object in memory, which you can add items to and set properties on. Nothing of value actually happens until you call offer.send(). So that means you can call createOffer as many times as you want. You could call it a million times in a second if you wanted and nothing would break. Of course, sending offers that frequently isn't gonna work.
  8. That's just one of those Steam errors that happens. Slowing down may help, and it may not.
  9. community = new SteamCommunity(); community.login({"accountName": "username", "password": "password", "twoFactorCode": "ABCDE"}, (err, sessionID, cookies, steamguard, oAuthToken) => { if (err) { throw err; } community.getUserInventoryContents("[U:1:46143802]", 730, 2, true, (err, inventory) => { if (err) { throw err; } console.log(inventory); }); });
  10. You can't do it with node-steam-user. You'll want node-steamcommunity to do that.
  11. steam-tradeoffer-manager uses this API: https://lab.xpaw.me/steam_api_documentation.html#ISteamEconomy_GetAssetClassInfo_v1
  12. I can't really support modules I didn't write, but to be sure the problem isn't with my module, I need more information. Anytime you get an error, give the entire output.
  13. The item.fraudwarnings array contains the item's fraud warnings. If you want to see if there an exists an item in that array which literally matches "This item has been renamed", you can use item.fraudwarnings.includes("This item has been renamed") The problem is that typically, that isn't the exact text. Usually items which have been renamed also include their original names in the fraud warning. In this case, you'll need to loop the array and use includes on each entry.
  14. As per the documentation, if you pass a node-steam-user instance to the constructor, then you will get real-time notifications if an offer you sent was accepted, provided you received items in that offer.
  15. You can only relog while connected. If you're not connected, you need to login again.
  16. You can create an offer and use getUserDetails. If the token is bad, it will error.
  17. Because they can't get API keys, and this module needs to use the API.
  18. As per the documentation, it only cancels offers as the result of a poll, so the actual cancel time is whatever you set it to +/- your poll interval.
×
×
  • Create New...