Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3656
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. 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.
  2. 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.
  3. All the data you need would be in the item schema, but deciphering it can be a challenge.
  4. Please check the docs. loadPartnerInventory doesn't have a tradableOnly argument.
  5. You need to call manager.createOffer before you try to call loadPartnerInventory on that offer.
  6. 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.
  7. You have to load your partner's inventory and add items from their inventory.
  8. 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) => { // ... }); });
  9. That's not something I'm going to help with.
  10. You're not using a supported version of steam-user, so I can't help you.
  11. 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?
  12. Show the full code.
  13. That's the same error and console output that your first code should produce. Did you run the wrong file or not save it?
  14. 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?
  15. Yes, there's a method to kick someone from a chat room group.
  16. Having a limited account shouldn't affect activity status or accepting friend requests.
  17. Sure, although I'm not sure what circumstances prompt a notification.
  18. https://github.com/DoctorMcKay/node-steam-user/wiki/SteamChatRoomClient#getclanchatgroupinfoclansteamid-callback
  19. requestRichPresence is not the appropriate method to set your persona state to online. Use setPersona instead.
  20. Yeah, that should work for you. If you're logging in with an account name and password to an account that has mobile 2FA enabled, you need to provide a code every time even if you pass the steamguard string.
  21. Are you setting your bot's persona status to online?
  22. Are you giving it a two factor code?
  23. The arguments passed to the login callback are err, sessionID, cookies, steamguard, oAuthToken. You've left out the cookies argument, which is why you aren't getting the correct value in steamguard.
  24. Watching a match involves connecting to GOTV likely using Steam's datagram relay. Honestly, that's a lot of complexity that's probably not really worth reverse-engineering. I've yet to look into retrieving demos of previous matches, which is likely much easier.
×
×
  • Create New...