Jump to content
McKay Development

Wanting Guard code every three try


Guest akagna

Recommended Posts

Guest akagna

Hello Dr, again me, the bot is wanting steam guard code, every three times try. Look at the logs,

 

post-86-0-95048300-1460906748_thumb.png

 

and this is code,

var SteamCommunity    = require ("steamcommunity");
var SteamTotp         = require ("steam-totp");
var fs                = require ("fs");
var TradeOfferManager = require ("steam-tradeoffer-manager")
var market            = require ("steam-market-pricing")
var steam             = require ('steam-user')

var client = new steam();

var code = SteamTotp.getAuthCode('code');

var logOnOptions = {
  "accountName": "mabot",
  "password": "mapass",
  "twoFactorCode": code
};
var offer = new TradeOfferManager({
  "domain": "steamcommunity.com/id/akagna",
  "language": "en",
  "pollInterval": 5000
});

// LOGIN PART


client.logOn(logOnOptions);

client.on('loggedOn', function(details) {
  console.log("Logged into Steam as " + client.steamID.getSteam3RenderedID());
  client.setPersona(steam.Steam.EPersonaState.Online);
  client.on('steamGuard', function(code) {
    console.log("Confirmed!");
  });
});



client.on('error', function(e) {
  console.log(e);
});

client.on('webSession', function(sessionID, cookies) {
  console.log("Got web session");
});

client.on('accountLimitations', function(limited, communityBanned, locked, canInviteFriends) {
	var limitations = [];

	if(limited) {
		limitations.push('LIMITED');
	}

	if(communityBanned) {
		limitations.push('COMMUNITY BANNED');
	}

	if(locked) {
		limitations.push('LOCKED');
	}

	if(limitations.length === 0) {
		console.log("Our account has no limitations.");
	} else {
		console.log("Our account is " + limitations.join(', ') + ".");
	}

	if(canInviteFriends) {
		console.log("Our account can invite friends.");
	}
});

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...