Jump to content


Photo

Unable to accept offer: Not Logged In

node.js node-steam-tradeoffer-manager

  • Please log in to reply
3 replies to this topic

#1 venfiw

venfiw

    Member

  • Member
  • PipPip
  • 15 posts

Posted 17 January 2019 - 06:38 AM

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, 17 January 2019 - 06:46 AM.


#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,944 posts

Posted 17 January 2019 - 06:59 PM

You need your identity_secret to accept trade offers. There is no way around it.

 

https://dev.doctormc...ookieexpiration



#3 venfiw

venfiw

    Member

  • Member
  • PipPip
  • 15 posts

Posted 18 January 2019 - 09:29 PM

You need your identity_secret to accept trade offers. There is no way around it.

 

https://dev.doctormc...ookieexpiration

so can i use those cookies accept offer as gift replace identity_secret ?

  • sessionid
  • steamLogin
  • steamLoginSecure*
  • steamMachineAuth<SteamID>*


#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,944 posts

Posted 18 January 2019 - 09:41 PM

You need cookies to be logged into Steam. You need your identity_secret and to be logged in to confirm offers.







Also tagged with one or more of these keywords: node.js, node-steam-tradeoffer-manager

4 user(s) are reading this topic

0 members, 4 guests, 0 anonymous users