Duodecim Posted March 2, 2023 Report Share Posted March 2, 2023 (edited) I use passport and SteamStrategy to login my steam account to my bot, and i found this peculiar bug, When i enter from anyware to https://steamcommunity.com/chat/ The method that handles the bot errors of SteamUser gets emited and the session of my bot ends, so i need to login again. //Listen Error Bots Bidirectional client.on('error', function(err) { console.log('Bot-Error'); socket.emit('bot-errors', err); // Updates Live Notification }, err => { console.log('error'); console.log(err); }); Thanks ! Edited March 2, 2023 by Duodecim Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted March 3, 2023 Report Share Posted March 3, 2023 It would be helpful if you mentioned what the error you get actually is. I'm going to assume that you're getting LoggedInElsewhere, which would suggest that you need to set logonID to a nonzero value when you log on. Quote Link to comment Share on other sites More sharing options...
Duodecim Posted March 3, 2023 Author Report Share Posted March 3, 2023 Thanks for the reply Dr, i logged the error response and i get LogonSessionReplaced I look in the node-steam-user#methods- , and i saw the definition of logonID option with the loginID the session persist, this loginId must be a random number ? Thanks ! Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted March 4, 2023 Report Share Posted March 4, 2023 It doesn't matter what the value is, it just has to be different. If you try to connect twice from the same public IP using the same logonID, then the first session will be booted. If you don't supply one (seems like webchat doesn't) then it defaults to 0. 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.