Jump to content
McKay Development

Recommended Posts

Posted

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


image.thumb.png.ba395f3cd5a56cf828e237e40dc2c38d.png


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); 
});

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...