Jessecar96 / SteamBot

Automated bot software for interacting with Steam Trade
http://scrap.tf
MIT License
1.33k stars 910 forks source link

Optional 2FA code on first login #1136

Closed Noobgam closed 6 years ago

Noobgam commented 6 years ago

This is kinda useful, especially when your bot is well-established, .auth files are there, bot always fails his first login attempt without this, if you spam this (e.g. restart bot or something), steam is going to temp-ban you for incorrect login attempts.

So far it worked fine for me, bot is able to login on his first attempt and I don't know when is it reasonable to login without 2FA when .auth files already exist

Perhaps adding it as an option to the configuration file is even better

ghost commented 6 years ago

Just wanted to add to this. Maybe in the constructor have it check for a .mafile that matches the username and sets "useTwoFactorByDefault" to true? That way we should be able to skip having to set it to true when creating a new bot.