Jump to content
McKay Development

How to wait for user input on event "steamGuard" ?


Gabriel1375

Recommended Posts

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.

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