Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. const SteamUser = require('steam-user');
  2. const client = new SteamUser();
  3. const SteamTotp = require('steam-totp');
  4.  
  5. const logOnOptions = {
  6. accountName: 'id',
  7. password: 'pwd',
  8. //twoFactorCode: SteamTotp.generateAuthCode('')
  9. };
  10.  
  11. client.logOn(logOnOptions);
  12.  
  13. client.on('loggedOn', () => {
  14. console.log('Logged into Steam!');
  15.  
  16. client.setPersona(SteamUser.Steam.EPersonaState.Online);
  17. client.gamesPlayed(42690);
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement