Jump to content
McKay Development

How to reconnect to Steam?


DevDuck

Recommended Posts

After today's maintenance, my bot stopped to be online. I can't restore my bot. I tried to reproduce the disconnection with Steam.

 

I determine that my bot is offline

manager.on('pollSuccess', () => {
    if (!client.steamID || !csgo.haveGCSession) {
        // My bot is offline. Maybe there's another way?
    }
});

If I do 

client.logOff() 

then I try to relog

client.relog()

I'am getting nothing. 

 

Ok. I changed my code to:

 

if (client.steamID) {
    client.relog();
} else {
    client.logOn(getLogOnOptions());
}

But after client.logOff(), client.steamID - is set and relog is not working.

 

Why after client.logOff() my condition is not working? Maybe I need something to add to the condition?

 

Update

 

And after client.logOff() invoked event disconnected but autoRelogin not invoked.

Edited by DevDuck
Link to comment
Share on other sites

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