Jump to content
McKay Development

Vanilla

Member
  • Posts

    73
  • Joined

  • Last visited

Everything posted by Vanilla

  1. Yep, nothing changed. I simply ignore that function because it keep removing my showcases
  2. client.on("friendMessage", (steamid, message) => { if (message === "test") { client.getSteamLevels([steamid], function(results) { if (results[steamid] > 5) { client.chatMessage(steamid, "u have +5 lvl."); console.log("done"); } }); } });
  3. 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
  4. 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
  5. 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
  6. 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
  7. Try with getOffers instead https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOfferManager#getoffersfilterhistoricalcutoff-callback
  8. 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.
  9. client.on('webSession', function(sessionID, cookies) { steamcommunity.setCookies(cookies); }); steamcommunity.on("sessionExpired", function(err) { if (err) { client.webLogOn(); } });
  10. 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.
  11. 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.
  12. Either make your bot automatically generate 2FA code using steam-totp or logged in using loginKey
  13. Might be possible using SteamCMD, but I don't know how to do it
  14. 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 }
  15. 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 });
  16. https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?key=YOUR_API_KEY&steamids=STEAM64ID result are in JSON format
  17. Get list user inventory using manager.getUserInventoryContents and use offer.addTheirItems
  18. use this? if (err) { console.log('STEAMBOT calling webLogOn - ' + this._steamid + ' - ' + this._user + ' isLoggedIn=' + this._isLoggedIn); this._client.webLogOn(); }
  19. https://steamerrors.com/11 From here, probably just another Steam issue
  20. I never know this one exist, thank you See answer above if you interested
  21. Hello, is there a function / method to redeem wallet code? I want my bot to have command to redeem wallet code via chat message..
  22. Soo.... a bot that spamming friend request? ¯\_(ツ)_/¯
  23. Add amount property when adding item https://dev.doctormckay.com/topic/1034-adding-gems-and-gem-sacks-to-trade/?hl=gems https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOffer#addmyitemitem
  24. 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. https://www.w3schools.com/jsref/jsref_tolowercase.asp
  25. maybe this? var SteamUser = require('steam-user'); var newUser = new SteamUser(); details = { accountName: '<username>', password: '<password>' } newUser.logOn(details); newUser.on('loggedOn', function (details) { console.log('Sucesfully Logged in'); //do something });
×
×
  • Create New...