Jump to content
McKay Development

Vanilla

Member
  • Posts

    73
  • Joined

  • Last visited

Contact Methods

  • Website URL
    https://steamcommunity.com/id/VanillaBot/

Profile Information

  • Gender
    Not Telling
  • Location
    Indonesia

Recent Profile Visitors

2264 profile views

Vanilla's Achievements

  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 });
×
×
  • Create New...