Jump to content
McKay Development

Recommended Posts

Posted

We have on account for steam bot, we used that account in our local server as well as stagging server and getting this error  Error: LoggedInElsewhere,

can you please suggest, is there any method available for forceful login, or

how can avoid this error 

 

 

 

image.png

Posted

No, Im just logged in using our bot

class SteamBot {
  constructor(logOnOptions) {
    this.client = new SteamUser();
    this.community = new SteamCommunity();
    this.manager = new TradeOfferManager({
      steam: this.client,
      community: this.community,
      language: "en",
    });
    this.logOn(logOnOptions);
  }
 
  logOn(logOnOptions) {
    this.client.logOn(logOnOptions);
    this.client.on("loggedOn", () => {
      console.log("Logged into Steam");
      this.client.setPersona(SteamUser.EPersonaState.Online, "Bot-name");
      this.client.gamesPlayed(730);
    });
 
    this.client.on("webSession", (sessionid, cookies) => {
      this.manager.setCookies(cookies);
      this.community.setCookies(cookies);
      this.community.stopConfirmationChecker();
    });
..
.
.
.
.
..
.
const bot = new SteamBot({
  accountName: process.env.STEAM_USERNAME,
  password: process.env.STEAM_PASSWORD,
  twoFactorCode: SteamTotp.generateAuthCode(process.env.SHARE_SECRET),
  rememberPassword: true,
});
  • 1 month later...

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