Trajko
Member-
Posts
7 -
Joined
-
Last visited
Everything posted by Trajko
-
Hi, how can I fix this: Error: this.client.webLogOn(); ^ TypeError: Cannot read property 'webLogOn' of undefined Code: this.community.on('sessionExpired', function() { this.client.webLogOn(); }); This code is inside SteamBot constructor class
-
How to use multiple proxy in SteamBot constructor
Trajko replied to Trajko's topic in node-steam-user
How it will know to use different one from array after 10 uses? Also, will everything log off if one account in constructor have some problem? -
How can I use more than one proxy? I have more than 15 acc class SteamBot { constructor(logOnOptions) { this.client = new SteamUser({ autoRelogin: true, httpProxy: "http://user:[email protected]:8081" });
-
I did this for login part const Test1 = new SteamUser(); const Test2 = new SteamUser(); app.post('submit1', (req, res) => { var namePass = req.body; Test1.logOn(namePass); Test1.on('steamGuard', function(domain, callback) { res.send("User name and password are correct, ask for mobile guard") }); Test1.on('loggedOn', (details) => { res.send("you don't have 2FA") }); }); app.post('submit2', (req, res) => { var namePassGuard = req.body; Test2.logOn(namePassGuard); Test2.on('steamGuard', function(domain, callback) { res.send('invalid mobile guard'); }); Test2.on('loginKey', (key) =>{ database.insert(namePassGuard, key); new SteamBot({ accountName: namePassGuard.accountName, rememberPassword: true, loginKey: key }); res.send("login succes") }); }); Will it work? Can you please help me with the questions above? I read every single post and documentation...
-
Thanks for the reply! I will fix that part. I have few more questions... What is the best way to enter 2FA only one time and keep bots logged in? Is this from "submit2" enough? Should I log off from "Test1" before I log in with "Test2"? Should I log off from "Test2" before I log in with the new SteamBot() constructor? Will all bots log off if I change the password on one acc? What is the best way to keep multiple bots active, so that if one acc got logged off, the rest stay logged in? Should I use new SteamBot() constructor or is there a better way? How can I manage proxies if I enter more than 10acc (i read you said that there should be only 10acc per IP address) so that every 10 acc from input on the website gets a new proxy or? I read the entire documentation a few times, this is everything I need to finish. I would really appreciate it if you can help me.
-
Thanks for the reply! Can you tell me which "submit2" from my example should I use? Also, can you tell me what is the best way to keep bots logged in so that I don't need to enter 2FA more than one time?
-
Hi, I want to make website where I can add my bots from input on site. What is best way to do it? I was thinking something like this: app.post('submit1', (req, res) => { var namePass = req.body; Test.logOn(namePass); Test.on('steamGuard', function(domain, callback) { res.send('User name and password are correct, ask for mobile auth') }); }); Then website will ask for code. And when i enter it, i recive it like this: app.post('submit2', (req, res) => { var namePassGuard = req.body; new SteamBot(namePassGuard); }); And then i can add in SteamBot constructor something like "when loginKey, save it in db"... So that way i will need to enter code only one time... Am I doing it correct? or something like this app.post('submit2', (req, res) => { var namePassGuard = req.body; Test.logOn(namePassGuard); Test.on('steamGuard', function(domain, callback) { res.send('invalid mobile guard'); }); Test.on('loginKey', (key) =>{ something like this: db.save(namePassGuard, key); new SteamBot(db.this.username.and.key); res.send("login succes") }); }); var Test is new SteamUser()