venfiw Posted January 17, 2019 Report Posted January 17, 2019 (edited) 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 January 17, 2019 by venfiw Quote
Dr. McKay Posted January 17, 2019 Report Posted January 17, 2019 You need your identity_secret to accept trade offers. There is no way around it. https://dev.doctormckay.com/topic/365-cookies/#user-cookieexpiration Quote
venfiw Posted January 19, 2019 Author Report Posted January 19, 2019 You need your identity_secret to accept trade offers. There is no way around it. https://dev.doctormckay.com/topic/365-cookies/#user-cookieexpirationso can i use those cookies accept offer as gift replace identity_secret ?sessionidsteamLoginsteamLoginSecure*steamMachineAuth<SteamID>* Quote
Dr. McKay Posted January 19, 2019 Report Posted January 19, 2019 You need cookies to be logged into Steam. You need your identity_secret and to be logged in to confirm offers. Quote
Recommended Posts
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.