I
I
Igor Kordonsky2017-05-27 17:41:13
Steam
Igor Kordonsky, 2017-05-27 17:41:13

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"
  }
});

But it gives me this error, what am I doing wrong...
52579cefc06e4c0d872a97b23c4967fc.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question