Lukasz Posted January 26 Report Posted January 26 Hi Doc, Hi all I have that problem that every time my bot works for some few hours it's got 403 and i need to restart my bot This is how I log in. Did I do something wrong? Am I missing something? const client = new SteamUser(); const community = new SteamCommunity(); const manager = new TradeOfferManager({ steam: client, community: community, useAccessToken: true, language: 'en', pollInterval: 30000, cancelTime: 30 * 59 * 1000 }); const logInOptions = { accountName: config.accountName, password: config.password, autoRelogin: true, twoFactorCode: SteamTotp.generateAuthCode(config.sharedSecret), }; client.logOn(logInOptions); client.on('loggedOn', () => { console.log('Logged on'); client.setPersona(SteamUser.EPersonaState.Online); client.gamesPlayed([730]); // CS:GO game ID }); client.on('webSession', (sid, cookies) => { manager.setCookies(cookies); community.setCookies(cookies); handleWebSession(); setInterval(handleWebSession, 15000); }); Quote
Dr. McKay Posted January 27 Report Posted January 27 I think you're probably having issues because you're setting up a new interval every time webSession is emitted, so eventually you're calling handleWebSession() many times all at once. 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.