Answer the question
In order to leave comments, you need to log in
Can't login with node-steam, what's wrong?
I did everything as described here https://github.com/seishun/node-steam , installed via npm, created an app.js folder in the directory where I installed it, wrote the code as in the example:
var Steam = require('steam');
var steamClient = new Steam.SteamClient();
var steamUser = new Steam.SteamUser(steamClient);
steamClient.connect();
steamClient.on('connected', function() {
steamUser.logOn({
account_name: 'username', //ввел свой логин
password: 'password' //ввел свой пароль
});
});
steamClient.on('logOnResponse', function(logonResp) {
if (logonResp.eresult == Steam.EResult.OK) {
console.log('Logged in!');
steamFriends.setPersonaState(Steam.EPersonaState.Online); // to display your bot's status as "Online"
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question