const SteamUser = require('steam-user');
const SteamTotp = require('steam-totp');
const config = require('./config.json');
const client = new SteamUser();
const logOnOptions = {
accountName: config.username,
password: config.password,
twoFactorCode: SteamTotp.generateAuthCode(config.sharedSecret)
};
client.logOn(logOnOptions);
client.on('loggedOn', () => {
console.log('Success login');
client.setPersona(SteamUser.Steam.EPersonaState.Online);
});
TypeError: Cannot read property 'EPersonaState' of undefined
Кто делал ботов для steam-а, откуда эта ошибка? всё вроде по документации