Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3398
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. client.setPersona(SteamUser.EPersonaState.Offline); That says offline to me.
  2. That shouldn't be possible. All I can figure is that you aren't grabbing the same item, or else it's already left your inventory.
  3. I'm not sure I'm following. An offer is accepted, you call getReceivedItems and save its ID. Then you load your inventory and the ID of the item in your inventory is different?
  4. https://github.com/DoctorMcKay/node-steam-user#myfriends
  5. Like, actually online? You used setPersona to mark it as online?
  6. Show all your code please. And indent it properly so it's readable.
  7. You can use webLogOn at any time, but if you spam Steam then Valve is not likely to be happy. You shouldn't create an interval inside of an event callback. Create it outside the callback, in the root level of the module (the part that has no indentation). Keep track of the last time you called webLogOn (a timestamp) and don't call it if it was less than say a minute ago.
  8. Use setInterval but outside of any event callback. Also, you need to keep track of the last time you called webLogOn and abandon if it was too soon ago, as sessionExpired can be emitted at any frequency (perhaps several times a second).
  9. You will always get an err in sessionExpired. It's not indicating that there was an error in the session expiring or anything, it's just the Error that made us aware that the session has expired. Also, I'd suggest keeping the login interval as well.
  10. You're correct regarding the behavior of setTimeout and setInterval. The problem is, if you create a new interval every time you get a new web session, then you end up with many auto-repeating timers.
  11. That will create a new interval every time your session expires. Either use setTimeout or create the internal outside of that event callback. Also, you may want to listen for the sessionExpired event.
  12. Presently there's no existing method to accept gifts.
  13. If that works it's a fluke. You should pass an Error to the callback, like this: callback(new Error("File not found"));
  14. Your first code snippet will work if you get rid of the parenthesis. Like this: setTimeout(getGuardCode, 30000); You need to pass setTimeout a function. By adding parenthesis, you're calling the function and passing its return value (undefined) instead of passing it.
  15. Yes, you should set a timeout. The code a couple posts back will just spam Steam with login requests which will get you locked out. That's not how you set a timeout, though. You want this: setTimeout(function() { callback(SteamTotp.generateAuthCode(config.sharedsecret)); }, 30000);
  16. https://github.com/DoctorMcKay/node-steam-user#friendorchatmessage
  17. No. No Steam services support IPv6 at the present time.
  18. Correct! I'm glad you got it sorted out. That tutorial is outdated. Things move pretty quickly in this world. If you have any other questions, feel free to ask.
×
×
  • Create New...