Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3402
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. Save the "steamguard" argument in the login callback, and supply it to future logins as a "steamguard" property in the object.
  2. You need to pass in an array (it can have only one item in it).
  3. You can get those details with getProductInfo: https://github.com/DoctorMcKay/node-steam-user#getproductinfoapps-packages-callback
  4. Please don't post your API keys. You need to wait until the callback of setCookies to try to call getOffer. And again, your input to getOffer is incorrect.
  5. There are some general examples in the GitHub repo: https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/tree/master/examples
  6. Please read the documentation. You need to call setCookies and wait for the callback before you try to do anything else, and that is invalid input for getOffer.
  7. You can't perform authenticated requests before you're logged in. You aren't logged in until the loggedOn event is emitted. What your code is doing is starting the login process, then immediately before it completes you're trying to send an offer. Obviously, that's not gonna work.
  8. Your timeout should be for calling the callback, not for calling LogOn again.
  9. https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#uploadavatarimage-format-callback
  10. You should probably wait for the sentOfferChanged event to be emitted with the offer's state being Active before you add it to your database.
  11. You need a code every time you login if you're using TOTP/mobile authenticator.
  12. You should add a delay before you attempt to relog if your code was wrong. A wrong code will continue to be wrong for up to 30 seconds. What happened there was that your code was already used when you tried to login, so Steam failed your login and told you that your last code was wrong. Then you tried to login 15 more times with the same incorrect code. For obvious reasons, Steam blacklisted your IP for a short time.
  13. You can't. You can add a friend via steamcommunity, however.
  14. Read the documentation please. There are events for everything you just described.
  15. You should make it stop restarting the script a lot of times.
  16. Use steamID.toString() instead of JSON.stringify.
  17. https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOffer#getreceiveditemsgetactions-callback
×
×
  • Create New...