Gabriel1375 Posted April 13, 2020 Report Share Posted April 13, 2020 Hello, i'm making a steam trading bot, and i want to login by cellphone. What i want: 1 - Make a login page in html/php/css 2 - Enter my login details 3 - A instance of the bot will be opened using the provided username and password 4 - It will ask for my steam guard, then i would need to enter steamguard code on my login page. I've looked through events, and i've found this one that occurs when steam guard is prompted: client.on("steamGuard", function(domain, callback, lastCodeWrong) { console.log("Steam Guard code needed from mobile (main bot)"); }); But this ends the program after logging to the console, how can i make for this to wait for the steamguard code? Thanks. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted April 13, 2020 Report Share Posted April 13, 2020 Node.js will automatically exit if nothing is waiting for input. You just need to add some code to accept the code from the user somehow, and the application won't exit. Gabriel1375 1 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.