-
Posts
3544 -
Joined
-
Last visited
Everything posted by Dr. McKay
-
checking if sent offer has been accepted
Dr. McKay replied to N4d!r's topic in node-steam-tradeoffer-manager
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. -
Your err and offer parameters are switched.
-
No.
-
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.
- 1 reply
-
- node.js
- node-steam-tradeoffer-manager
-
(and 1 more)
Tagged with:
-
Your timeout should be for calling the callback, not for calling LogOn again.
-
Is it possible to change profile picture trough steam npm?
Dr. McKay replied to Dimitry's topic in node-steam-user
https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#uploadavatarimage-format-callback -
You need a code every time you login if you're using TOTP/mobile authenticator.
-
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.
-
Question how can i add items to send and to recieve ?
Dr. McKay replied to N4d!r's topic in node-steam-tradeoffer-manager
You can indeed. -
Question how can i add items to send and to recieve ?
Dr. McKay replied to N4d!r's topic in node-steam-tradeoffer-manager
You need to check err. -
You can't. You can add a friend via steamcommunity, however.
-
Question how can i add items to send and to recieve ?
Dr. McKay replied to N4d!r's topic in node-steam-tradeoffer-manager
Read the documentation please. There are events for everything you just described. -
You should make it stop restarting the script a lot of times.
-
Use steamID.toString() instead of JSON.stringify.
-
How do you know that it's a new thing?
Dr. McKay replied to Mike's topic in node-steam-tradeoffer-manager
https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOffer#getreceiveditemsgetactions-callback -
How to check if im connected to steam network?
Dr. McKay replied to trzyrazyzero's topic in node-steam-user
The steamID property will be null if you aren't connected. It'll be a SteamID object if you are. -
Question how can i add items to send and to recieve ?
Dr. McKay replied to N4d!r's topic in node-steam-tradeoffer-manager
Assuming all items are CS:GO items... var offer = manager.createOffer("https://steamcommunity.com/tradeoffer/new/?partner=123456&token=xxxxxx"); offer.addMyItems([ { "appid": 730, "contextid": 2, "assetid": "6908727870" }, { "appid": 730, "contextid": 2, "assetid": "6901768067" } ]); offer.addTheirItems([ { "appid": 730, "contextid": 2, "assetid": "847548541" }, { "appid": 730, "contextid": 2, "assetid": "325415748" } ]); offer.send(function(err, status) { if (err) { throw err; } console.log("Offer #" + offer.id + " is now " + status); }); -
getReceivedItems for sent offers
Dr. McKay replied to adammo's topic in node-steam-tradeoffer-manager
Just call getReceivedItems after the offer is accepted. -
Just keep trying to accept it. As far as I can tell, error 28 just means Steam is being bad.
-
The API isn't going anywhere.
-
Best way to detect invalid cookies.
Dr. McKay replied to RafGDev's topic in node-steam-tradeoffer-manager
Yeah it only happens when an HTTP request fails. If you aren't making requests then it won't be emitted.