Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3591
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. If you're using steam-user and your account has email-based Steam Guard enabled, when you run the bot and Steam prompts for a code, the module will automatically prompt you to enter the code. Once you do and hit enter, it will proceed with the login. You can post group announcements using steamcommunity, but discussion forums are not supported and are unlikely to ever be, due to spam concerns.
  2. Assuming your clock is correct, this will tell you how many seconds are left until the code will change: let secondsRemaining = 30 - (Math.floor(Date.now() / 1000) % 30); But note that once a code changes, you still have another 30 seconds to use it before it comes invalid.
  3. I assume a "nodejs bot" is a steam-user bot? https://github.com/DoctorMcKay/node-steam-user#websession
  4. You want to use the rememberPassword log on option.
  5. I don't think you can request profile data for arbitrary users without you being friends with them (or being in the same group chat) via steam-user.
  6. No, those are the same exact URL.
  7. No, that isn't normal. Just running const SteamUser = require('steam-user') runs at around 60 MB for me.
  8. The user event will be emitted anytime Steam sends a persona state notification, which happens automatically for all your friends whenever their states change, provided you're marked as online.
  9. Get your friends list from myFriends and check each of their statuses in users.
  10. If you're using steam-user, rememberPassword is the only option you can use. There are no cookies.
  11. Assuming you're using steam-user, look into rememberPassword. But be warned, it's not foolproof. It breaks sometimes.
  12. If you're specifying a custom dataDirectory, then it's not going to get saved to appdata.
  13. There's no reason anything should have changed. v3 hasn't been touched in months. Incidentally, I suggest that you update to v4.
  14. It's in their persona_state_flags. You can see the available flags here. So, you'd want to check if (user.persona_state_flags & SteamUser.EPersonaStateFlag.ClientTypeMobile)
  15. No, there is no such function as declineConfirmationForOffer. If you want to accept a given offer by ID, you'll need to first retrieve it using getOffer.
  16. You need to research how asynchronous code works in JavaScript.
  17. Before calling webLogOn, you need to check if client.steamID is set. If it isn't, then you aren't connected and you'll need to reconnect first.
  18. No.
  19. For most free games other than TF2, you need to request a license before you can play it.
  20. Your package.json is malformed. It looks like you just glued package-lock.json and package.json together. Don't do that. Get rid of the second dependencies section.
  21. You need to run npm install in the folder where your bot code is located. If you didn't add steam-user to your package.json, then you'll need to use npm install steam-user.
×
×
  • Create New...