Jump to content
McKay Development
venfiw

Unable to accept offer: Not Logged In

Recommended Posts

let client = new SteamUser();
	community = new SteamCommunity({
    	"request": Request.defaults({"rejectUnauthorized": false})
	});
	manager = new TradeOfferManager({
		steam: client,
		community: community,
		language:'en'
	});
if (config.autologin == 1) {
	client.logOn({
		"accountName":config.username,
		"password":config.password,
		"twoFactorCode": SteamTotp.generateAuthCode(config.sharedse)
	})
 } else {
	var rl = Readline.createInterface({
	   input: process.stdin,
	  output: process.stdout
	});
	rl.question("username: ", function(name) {
	    var username = name;
	    rl.question("password: ", function(pass) {
		    var password = pass;
			client.logOn({
				"accountName":config.username,
				"password":config.password,
				"twoFactorCode": SteamTotp.generateAuthCode(config.sharedse)
			})
	    });
	});                  
}

client.setOption('promptSteamGuardCode',true);//true代表手动输入令牌,false代表使用2FA文件
client.on('loggedOn',() => {
	console.log('\n### Logged into Steam\n##  steamid64:'+client.steamID+'\n##  play game:'+config.playgame+'\n##  trademode:'+config.trade+'\n##  invitmode:'+config.invite);
	client.setPersona(SteamUser.Steam.EPersonaState.Online);
	client.gamesPlayed(config.playgame);
	botid64 = client.steamID;
	botid3 = client.steamID.getSteam3RenderedID()
});
client.on('webSession', function(sessionid, cookies) {
	manager.setCookies(cookies);
	community.setCookies(cookies);
});

is there any possible i can accept the tradeoffer with out 2FA sharedse?

in some reason, i lose my sharedse, i gave it for a tradesite, and it can help me to send skins to other peole, and i can get the code when i want to login.

 

and i make this bot can accept the offer when he got a tradeoffer,it works Just after logging in, but After a while 30mins or 1hours he can't accept the offer any more, and it just show "Unable to accept offer: Not Logged In"

Edited by venfiw

Share this post


Link to post
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...