Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3591
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. I don't believe so.
  2. You could try that. It works for me.
  3. Created an issue for this: https://github.com/DoctorMcKay/node-steam-user/issues/297
  4. I don't understand your question. What exactly isn't working?
  5. It seems that WebStorm gets confused by @extends in modules for some reason. v4.14.0 should properly make WebStorm understand what's going on.
  6. Update to 4.13.3 and that warning should go away.
  7. It seems to work properly for me. I wrote a bot to do this: user.chat.on('friendMessage', async (msg) => { console.log(msg.message); user.chat.ackFriendMessage(msg.steamid_friend, msg.server_timestamp); if (msg.message.match(/^personastate \d+$/)) { let state = parseInt(msg.message.split(' ')[1], 10); user.setPersona(state); } }); It did what was expected.
  8. Node.js will automatically exit if nothing is waiting for input. You just need to add some code to accept the code from the user somehow, and the application won't exit.
  9. SteamDB requested and downloaded data for every package from Steam, and then built their own database.
  10. You can tell Steam that you're playing a game from steam-user, and make your account thus appear in-game to friends, but you can't actually launch the game client for real and get Steam connectivity features.
  11. I don't really think you can. You'd have to just see what's new in your inventory.
  12. You can use this script: https://github.com/DoctorMcKay/node-steamcommunity/blob/master/examples/enable_twofactor.js
  13. You can send a trade offer without a token only by being friends with the account in question. You can't add someone as a friend via the WebAPI like that.
  14. Yes, it's possible. You should probably seek help at stackoverflow.com; I'm not here to teach you JavaScript.
  15. You can use node-steamcommunity for that: https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#editprofilesettings-callback
  16. You're correct. I'll update that now.
  17. I'm confused; are you planning to receive account credentials from the remote client that's invoking your HTTP endpoints? If not, then there's no point in having a /verifycode route; you should just handle the steamGuard event automatically.
  18. Correct, tradeRequest is for real-time trade requests, which you actually can't send through the Steam client anymore (although I think you might be able to through CS:GO, not sure). Use steam-tradeoffer-manager to handle trade offers. Here's an example.
  19. The protobufs can be gotten from SteamDB, who gets them using ProtobufDumper.
  20. No, you probably want to put all your event handlers outside of your HTTP routes, and store the steamGuard callback in some global variable, so you can call it from your /verifycode route.
  21. You should use the steamGuard event rather than calling logOn multiple times.
  22. It's a planned feature for globaloffensive, but I haven't gotten around to adding it yet.
×
×
  • Create New...