Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3545
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. You aren't logging into node-steamcommunity.
  2. You could add a function to that app.js file which returns the bot instance. Like exports.getBot = function() { ... }
  3. You should provide the arguments as arguments, not as an object.
  4. You'd have to reverse engineer it yourself.
  5. It has never been tested to ensure that it actually returns well-formed tickets.
  6. fs is not an npm module. It's built into Node.js.
  7. That should work, but for robustness you should listen for the disconnected event then re-login after that gets emitted (but make sure you only call logOn in response to disconnected if you manually initiated the logoff; disconnected can also be emitted if Steam goes down, in which case it will automatically reconnect).
  8. I don't believe this is currently possible (in node-steamcommunity; it will never be possible in node-steam-user).
  9. You want to parse the URL? https://nodejs.org/api/url.html
  10. Depending on what library you're using, there might be a method to get contexts. That said, it's likely any items you're interested in have a static, global context ID. For example, all current Valve games (TF2, CS:GO, etc) have a single context ID of 2. Steam Community items (emoticons, backgrounds, etc.) have a context ID of 6.
  11. Sleeping won't work. You need to use setTimeout to delay asynchronously. Delaying synchronously breaks pretty much everything, always.
  12. This is surprisingly difficult. You can't do it through node-steam-user at all, but you can do one of the following: Check the group members list XML to see if they're in thereCheck the user's profile XML to see if the group is listedBoth of these endpoints are deprecated, but neither has a replacement. Valve.
  13. You should collect the token by asking the user for their trade URL.
  14. Notice in the documentation that the users property isn't updated until after the user event finishes? The process.nextTick call waits until the next tick of the Node.js event loop, after the users property has been updated.
  15. This is probably a pretty common case that should be supported natively in the module. Update steam-user to v3.22.0 then use the friendPersonasLoaded event.
  16. Your getGameItems function is probably not clearing an array or something between requests.
  17. Dr. McKay

    use proxy

    Are you providing a protocol, like "http://"?
  18. Probably because you're using profileSettings and not uploadAvatar.
×
×
  • Create New...