-
Posts
3507 -
Joined
-
Last visited
Community Answers
-
Dr. McKay's post in Unable to accept offer: self signed certificate was marked as the answer
If you're absolutely sure that you want to allow MitM, this should work:
const Request = require('request'); const SteamCommunity = require('steamcommunity'); let community = new SteamCommunity({ "request": Request.defaults({"rejectUnauthorized": false}) }); -
Dr. McKay's post in steam guard was marked as the answer
Have you set the promptSteamGuardCode option to false?
-
Dr. McKay's post in Get steam keys from a file ? was marked as the answer
The first problem I see is that you aren't handling the callback to offer.accept, which could fail.
Secondly, you can use the fs module to read from a file. If it's newline-delimited, you could call split("\n") to get an array containing each line in the file.
-
Dr. McKay's post in getGameBadgeLevel for another user was marked as the answer
No, you'd need to use the WebAPI.
-
Dr. McKay's post in How to check if the items received are trading cards ? was marked as the answer
Do something like this:
let isEachItemATradingCard = theirItems.every((item) => { if (item.appid != 753 || item.contextid != 6) { // AppID is not "Steam" or contextid is not "Community" return false; } let tag = item.getTag('item_class'); if (!tag || tag.internal_name != 'item_class_2') { // Not a trading card // You could also check that tag.localized_tag_name == 'Trading Card' but that would only work for English return false; } return true; // all checks passed }); -
Dr. McKay's post in Confirmation from another device than Guard? was marked as the answer
There's a separate secret that's used for confirmations; it's not the same as the one you use to login.
-
Dr. McKay's post in editing friendlist privacy was marked as the answer
Added, sorry it took a while.
-
Dr. McKay's post in node-globaloffensive - sending custom requests was marked as the answer
Automating reports/commendations is one thing I won't help with.
-
Dr. McKay's post in Is way to get rank/tempban in CSGO (using PersonalGameData)? was marked as the answer
Not via any of my modules, you'd have to do it yourself.
-
Dr. McKay's post in Cannot read property 'getSteamID64' of null was marked as the answer
Looks like maybe there was a condition which ended up in your Steam client connection being disconnected just before your web session was negotiated.
-
Dr. McKay's post in ID event is not firing was marked as the answer
As you discovered, calling client.on('friendMessage#' + variable, ...) only creates a listener for the SteamID contained in variable at the time the listener was added. If you need to change the SteamID you're listening for, you need to just listen for friendMessage and check the SteamID in the event.
-
Dr. McKay's post in question about the method logOn was marked as the answer
If you just use node-steamcommunity without any special parameters, it will act as if it's a mobile login.
-
Dr. McKay's post in Amount of gems added to the trade offer was marked as the answer
You're setting the amount property on an array of CEconItem objects. It needs to be set on the objects themselves.
-
Dr. McKay's post in getProductInfo is giving error was marked as the answer
Please double-check the docs. Argument 2 to getProductInfo is an array of packages, not the callback. Pass an empty array if you don't care about any packages.
Also, it doesn't return the data; the data is passed to the callback.
-
Dr. McKay's post in Auth secret was marked as the answer
When using Steam in-home streaming, network communication is encrypted with the auth secret. It's called a pre-shared key because it's an encryption key that is shared with both parties (in this instance, the machine the games are getting streamed from and the machine they're getting played on) by Steam, before the in-home connection is established.
-
Dr. McKay's post in setHttpProxy() isn't working with changeEmail() was marked as the answer
The rate-limit is obviously not on your public IP. The change request is going through the proxy.
-
Dr. McKay's post in changeEmail isn't working with TwoFactorAuth was marked as the answer
That's probably the case, yes.
-
Dr. McKay's post in Error ReferenceError: community is not defined was marked as the answer
You never defined any variable named community.
-
Dr. McKay's post in App token & depot key dumper was marked as the answer
One of the files in your local cache appears to be corrupted. I'll push a fix to handle this case.
-
Dr. McKay's post in callback for invalid password was marked as the answer
Like when you're logging in? Check the error event.
-
Dr. McKay's post in Testing user input for a valid SteamID was marked as the answer
Yes, try/catch + isValid is the way you're supposed to validate a SteamID (also check the universe and type if you care about those).
-
Dr. McKay's post in node-steam-user question about logOn method was marked as the answer
client.setOption('promptSteamGuardCode', false);
-
Dr. McKay's post in client.GamesPlayed blocking other code from executing was marked as the answer
It executes once because you only told it to execute once.