-
Posts
73 -
Joined
-
Last visited
Posts posted by Vanilla
-
-
-
Try using steamcommunity getSteamUser, and check their privacyState
https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#getsteamuserid-callback
Maybe also possible using getPersona, but I don't know anything about it
https://github.com/DoctorMcKay/node-steam-user#getpersonassteamids-callback
-
I know what to do with an array, but where do I get the trade offer objects from.
manager.getOffer : https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOfferManager#getofferid-callback
manager.getOffers : https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOfferManager#getoffersfilterhistoricalcutoff-callback
newOffer (event) : https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOfferManager#newoffer
-
Correct me if I'm wrong, but isn't it should supposed to be like this?
community.on('sessionExpired', function(err) { if (err) { console.log('sessionExpired: '+err); client.webLogOn(); } community.stopConfirmationChecker(); });
Also, another way to bypass Steam Guard Code is using loginKey
- McMuffinDK and Igaresha
- 2
-
My question: is it possible to trade to another steam account with "phone 2fa" enabled, without purchasing 5$ game?
Not possible, your account still marked as "limited" which prevent you to do trades
https://support.steampowered.com/kb_article.php?ref=3330-IAGK-7663
-
i want get active send offers
Try with getOffers instead
-
Could some assist me in disabling my bot's session from ever timing out?
You can't, but you can try to refresh the session every X minutes
(like refresh the bot session every 30 mins)
Or just make a error handling code in steamcommunity's sessionExpired
this might helps.
-
Thanks for the answer!
Can you provide an example for clarification?
client.on('webSession', function(sessionID, cookies) { steamcommunity.setCookies(cookies); }); steamcommunity.on("sessionExpired", function(err) { if (err) { client.webLogOn(); } });
-
Has this error happened to you before? I mean, get null info of your offers.
Nope, never happened to me.
If incoming trade offer didn't match with my "rules", my bot successfully counter the trade.
The code above is pretty much how I counter the incoming trade offer.
Oh by the way, I'm using newOffer event to get incomming trade offer.
-
From what I know, you need to create new variable with offer.counter();
It will return the old trades (that we want to counter), do something with it, and send the counter offer
this might helps.
-
Sometimes I get a message like "Steam Guard App Code" and I have to enter this code, how do I turn it off?Thanks
Either make your bot automatically generate 2FA code using steam-totp or logged in using loginKey
-
Might be possible using SteamCMD, but I don't know how to do it
-
You can always use: console.log(err); to see what kind error is it.
Sometimes the error will show number (enums), this might help
For example, I want to handle error from EResult "Fail" (Code: 2), so the code is something like this..
//.. some code here if (stuff == SteamUser.EResult.Fail) { //handle code here }
-
Not really an answer, but here's a small code I use on my bot to prevent chat spam.
It will block a person who send same messages every 2 second.
var antispam; var markedSteamID; function spamtimer() { //when called, it will reset antispam = 0; markedSteamID = 0; } setInterval(spamtimer, 2000); //call spamtimer function every 2 sec //.. your code here client.on("friendMessage", function(senderID, message) { //anti spam if (senderID == admin){ //Ignore if chat from admin } else if ((antispam == message) && (markedSteamID == senderID.getSteamID64())) { client.chatMessage(senderID, "I caught you spamming"); //do something, like block that person or something } //.. your code here.. to respond chat antispam = message; //bot will record the message, will reset every 2 sec markedSteamID = senderID.getSteamID64(); //bot will record SteamID of sender, will reset every 2 sec });
-
Sorry i don't understand how to use it. Is there any examples in Github or somewhere?
https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?key=YOUR_API_KEY&steamids=STEAM64ID
result are in JSON format
-
Get list user inventory using manager.getUserInventoryContents and use offer.addTheirItems
-
I check if steamUser is still connected and calling webLogOn.. I just don't get a Session after that...
if (this._client.steamID !== null) { console.log('STEAMBOT calling webLogOn - ' + this._steamid + ' - ' + this._user + ' isLoggedIn=' + this._isLoggedIn); this._client.webLogOn(); }
use this?
if (err) { console.log('STEAMBOT calling webLogOn - ' + this._steamid + ' - ' + this._user + ' isLoggedIn=' + this._isLoggedIn); this._client.webLogOn(); }
-
-
I never know this one exist, thank you
i dont think so there are such function. Maybe try scraping the html page ?
See answer above if you interested
-
Hello, is there a function / method to redeem wallet code?
I want my bot to have command to redeem wallet code via chat message.. -
Soo.... a bot that spamming friend request?
¯\_(ツ)_/¯
-
-
https://dev.doctormckay.com/topic/1087-need-some-help-with-my-bot/?do=findComment&comment=3601
For capitalized stuff, you need to turn all incoming chat into non-capitalized.
-
Using editProfile-Function kicks out other settings of my profile
in node-steamcommunity
Posted
Yep, nothing changed.
I simply ignore that function because it keep removing my showcases