Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3590
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. I don't understand the question.
  2. Steam sucks. You should either wait a little while before crediting/deducting user balances, or ignore offers that go into state 3 twice.
  3. That's just par for the course when it comes to Steam, unfortunately.
  4. https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#disabletwofactorrevocationcode-callback
  5. Not as far as I'm aware. The Steam Mobile app uses the R code to disable mobile authentication.
  6. The first argument to updatePrice is which currency you want to get prices in. It seems that the docs are wrong on this, so I've updated them.
  7. I'm not aware of any way to share cookies between multiple IPs.
  8. The only way to avoid rate limits is to make requests from multiple IP addresses.
  9. Yes, this is the case. You need to use a loginKey for passwordless authentication; the sentry file is used to remember your machine for Steam Guard (and probably is also necessary when logging on with a loginKey). I don't know where the real client stores the loginKey; I've looked for it briefly in the past but I didn't find it. It might be stored somewhere encrypted.
  10. It's basically just a record of trade offer IDs that TradeOfferManager has seen and the last-seen state they were in, so that you don't get newOffer emitted for every trade offer every time you restart your bot. If you're okay with that happening, you don't need to save and restore poll data. Also, it's where data you set on a trade offer with the data() method is stored.
  11. All the data you need would be in the item schema, but deciphering it can be a challenge.
  12. Please check the docs. loadPartnerInventory doesn't have a tradableOnly argument.
  13. You need to call manager.createOffer before you try to call loadPartnerInventory on that offer.
  14. No, you only need to load an inventory that you want to add items from. You don't even technically need to load it if you already know the IDs of the items you want. There's not a lot I can do to help you with an error if you don't tell me what the error is.
  15. You have to load your partner's inventory and add items from their inventory.
  16. This isn't really the place to ask JavaScript questions. Stack Overflow is a better place for that. But, here's an example that will add 5 keys: manager.loadInventory(440, 2, true, (err, inventory) { if (err) { console.log(err); return; } let offer = manager.createOffer(recipient); // filter inventory to Mann Co. Supply Crate Keys // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter let keys = inventory.filter(item => item.market_name == 'Mann Co. Supply Crate Key'); // get only the first 5 // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice let fiveKeys = keys.slice(0, 5); offer.addMyItems(fiveKeys); offer.send((err, status) => { // ... }); });
  17. That's not something I'm going to help with.
  18. You're not using a supported version of steam-user, so I can't help you.
  19. I don't know why you'd only be getting that data. Here's the response I got to the same exact call: { chat_group_summary: { chat_rooms: [ [Object] ], top_members: [ [SteamID], [SteamID] ], role_ids: [], role_actions: [], party_beacons: [], chat_group_id: '22328242', chat_group_name: 'Price Bot', active_member_count: 2, active_voice_member_count: 0, default_chat_id: '78507305', clanid: SteamID { universe: 1, type: 7, instance: 0, accountid: 42048766 }, chat_group_tagline: '"IN DEVELOPMENT..."', chat_group_avatar_sha: null, rank: null, default_role_id: null, appid: null, watching_broadcast_channel_id: '0', active_minigame_id: null, avatar_ugc_url: null, disabled: null, steamid_owner: null, chat_group_avatar_url: null, watching_broadcast_steamid: null } } Maybe your account is limited and limited accounts don't have all the data returned to them? Maybe you need to update steam-user?
  20. Show the full code.
  21. That's the same error and console output that your first code should produce. Did you run the wrong file or not save it?
  22. The error is AccessDenied. Sounds like you don't have access to that group chat. But also that looks like the output your first code should produce. Did you run the wrong file?
  23. Yes, there's a method to kick someone from a chat room group.
×
×
  • Create New...