Comments (15)
Please share your code
from node-steam-parentbot.
Now it's logging in i don't know why
But i have another issue, after first login etc now i can't login
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.
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.
That was i think :))) Thanks
from node-steam-parentbot.
ahhh it's happend after second connect... Bulshit
from node-steam-parentbot.
from node-steam-parentbot.
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.
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.
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.
I mean something like :
console.log(isLogged); // True or False
from node-steam-parentbot.
You want something like logOnResponse event i think. @dragonbanshee can help you about how you can edit already defined events
from node-steam-parentbot.
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.
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.
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.
where do you get the shared secret from?
from node-steam-parentbot.
Related Issues (20)
- How to generate HOT 6
- Handling sended offers :) HOT 2
- Wont connect to socket HOT 26
- What is an identity secret? HOT 27
- Why steam is not working HOT 2
- How to get .2fa_info files. HOT 3
- Cannot Automatically Accept Trade Offers HOT 28
- Offer sending failure HOT 4
- Problem with hold duration! HOT 3
- I'm getting unexpected disconnection all the time HOT 6
- IS IT INCLUDE MANAGER? HOT 2
- How to get data on weblogon? HOT 1
- How can I reconnect from steamweblogon programmatically? HOT 3
- Handling Offers HOT 2
- Recent issue with NodeJS reinstall HOT 10
- [Q] Worth changing to ES6 version? HOT 1
- steamCommunity instance is 'community'? HOT 9
- Limit numbers of cSteamGroup.getGroupMembers() returns HOT 4
- smsCode HOT 30
- Array of bots and handlers HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-steam-parentbot.