Code Monkey home page Code Monkey logo

Comments (15)

mert574 avatar mert574 commented on September 13, 2024

Please share your code

from node-steam-parentbot.

Xeroner avatar Xeroner commented on September 13, 2024

Now it's logging in i don't know why
But i have another issue, after first login etc now i can't login

http://scr.hu/9li8/xch9j

code :
` var util = require('util');
var ParentBot = require('steam-parentbot'); //change to 'steam-parentbot' if not running from examples directory
var Steam = ParentBot.Steam; //instance of the Steam object

var ChildBot = function () {
ChildBot.super_.apply(this, arguments);
}

util.inherits(ChildBot, ParentBot);

var Bot = new ChildBot('xxxx', 'xxxx');

Bot.connect(); `

from node-steam-parentbot.

mert574 avatar mert574 commented on September 13, 2024

EResult: 5 means wrong password. That's why you cannot login.

If you are sure that your password is correct, then you probably restarted bot too often so steam have blocked you. Wait around ~10mins and try again, it should work as expected.

from node-steam-parentbot.

Xeroner avatar Xeroner commented on September 13, 2024

That was i think :))) Thanks

from node-steam-parentbot.

Xeroner avatar Xeroner commented on September 13, 2024

ahhh it's happend after second connect... Bulshit

from node-steam-parentbot.

Xeroner avatar Xeroner commented on September 13, 2024

http://scr.hu/9li8/fouej

from node-steam-parentbot.

mert574 avatar mert574 commented on September 13, 2024

EResult: 85 means, your account is 2FA enabled but you are trying to login without 2FA. In other words, you are not passing the sharedSecret

Do you pass the sharedSecret to childbot?

var util = require('util');
var ParentBot = require('steam-parentbot'); //change to 'steam-parentbot' if not running from examples directory
var Steam = ParentBot.Steam; //instance of the Steam object

var ChildBot = function () {
ChildBot.super_.apply(this, arguments);
}

util.inherits(ChildBot, ParentBot);

var Bot = new ChildBot('xxxx', 'xxxx' {
    sharedSecret: '[shared secret here]'  // <------------
});
Bot.connect();

from node-steam-parentbot.

Xeroner avatar Xeroner commented on September 13, 2024

Thanks man, i'm now connected :)))
Is there maby some array where are info about logged?

I mean something like :

console.log(isLogged); // True or False

from node-steam-parentbot.

kjsmita6 avatar kjsmita6 commented on September 13, 2024

The 2fa info is written to a file once it's enabled, as lono as you did it through the bot. It's called username.2fa_info.

from node-steam-parentbot.

Xeroner avatar Xeroner commented on September 13, 2024

I mean something like :

console.log(isLogged); // True or False

from node-steam-parentbot.

mert574 avatar mert574 commented on September 13, 2024

You want something like logOnResponse event i think. @dragonbanshee can help you about how you can edit already defined events

from node-steam-parentbot.

Xeroner avatar Xeroner commented on September 13, 2024

LogOnResponse returns me back info but it's only one time, i need to check is logged in every 5 seconds

from node-steam-parentbot.

mert574 avatar mert574 commented on September 13, 2024

Not sure if it's the right way to do it but you can do it like:
define a variable
set it to true with LogOnResponse
set it to false with loggedOff

from node-steam-parentbot.

kjsmita6 avatar kjsmita6 commented on September 13, 2024

There's a node-steam property called loggedOn that determines whether you are logged in or not.

You can use something like this to see if you're logged in:

setInterval (function () {
    console.log(Bot.steamClient.loggedOn);
}, 5000);

This will log true if logged on and false if logged off every five seconds.

from node-steam-parentbot.

CodeLuca avatar CodeLuca commented on September 13, 2024

where do you get the shared secret from?

from node-steam-parentbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.