-
Posts
3545 -
Joined
-
Last visited
Everything posted by Dr. McKay
-
Discussion How to use uploadAvatar function?
Dr. McKay replied to berkerm4n's topic in node-steamcommunity
You aren't logging into node-steamcommunity. -
Good info, thanks.
-
Question How to check, if someone commented on a announcement?
Dr. McKay replied to SayWhat's topic in node-steam-user
I don't have any immediate plans. -
Question Already logged on, cannot log on again
Dr. McKay replied to Frohser's topic in node-steam-user
-
Use the same bot in multiple files (app.js, router-files, etc.)
Dr. McKay replied to Verize's topic in node-steam-user
You could add a function to that app.js file which returns the bot instance. Like exports.getBot = function() { ... } -
Discussion How to use uploadAvatar function?
Dr. McKay replied to berkerm4n's topic in node-steamcommunity
You should provide the arguments as arguments, not as an object. -
You'd have to reverse engineer it yourself.
-
It has never been tested to ensure that it actually returns well-formed tickets.
-
fs is not an npm module. It's built into Node.js.
-
Question How to check, if someone commented on a announcement?
Dr. McKay replied to SayWhat's topic in node-steam-user
Pretty much, yes. -
Question Already logged on, cannot log on again
Dr. McKay replied to Frohser's topic in node-steam-user
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). -
Question How to check, if someone commented on a announcement?
Dr. McKay replied to SayWhat's topic in node-steam-user
I don't believe this is currently possible (in node-steamcommunity; it will never be possible in node-steam-user). -
getExchangeDetails.
-
Discussion how can i get the token in the offerURL
Dr. McKay replied to Ferriar_幽助's topic in node-steam-tradeoffer-manager
You want to parse the URL? https://nodejs.org/api/url.html -
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.
-
Question Already logged on, cannot log on again
Dr. McKay replied to Frohser's topic in node-steam-user
Sleeping won't work. You need to use setTimeout to delay asynchronously. Delaying synchronously breaks pretty much everything, always. -
Question How to check, if a user is in a specific group?
Dr. McKay replied to SayWhat's topic in node-steam-user
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. -
Discussion how can i get the token in the offerURL
Dr. McKay replied to Ferriar_幽助's topic in node-steam-tradeoffer-manager
You should collect the token by asking the user for their trade URL. -
Question Client.users after the bot fully connected?
Dr. McKay replied to Silentz0r's topic in node-steam-user
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. -
Question Client.users after the bot fully connected?
Dr. McKay replied to Silentz0r's topic in node-steam-user
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. -
Not at this time.
-
Question Sending multiple trade instead of one
Dr. McKay replied to rQwk's topic in node-steam-tradeoffer-manager
Your getGameItems function is probably not clearing an array or something between requests. -
Probably because you're using profileSettings and not uploadAvatar.