DevDuck Posted May 17, 2017 Report Share Posted May 17, 2017 (edited) 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 May 17, 2017 by DevDuck Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted May 18, 2017 Report Share Posted May 18, 2017 It won't automatically relogin if you explicitly log off. Quote Link to comment Share on other sites More sharing options...
DevDuck Posted May 18, 2017 Author Report Share Posted May 18, 2017 It won't automatically relogin if you explicitly log off.I know. Please tell me, if client.steamID is null (https://github.com/DoctorMcKay/node-steam-user/blob/master/README.md#steamid) what I need to do? client.relog() or client.logOn? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted May 18, 2017 Report Share Posted May 18, 2017 relog will only work if you're currently logged on (steamID is not null). If you're not logged on (steamID is null), logOn. Quote Link to comment Share on other sites More sharing options...
DevDuck Posted May 18, 2017 Author Report Share Posted May 18, 2017 Okey. Thank you. Quote Link to comment Share on other sites More sharing options...
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.