Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2018
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const SteamUser = require('steam-user');
  2. const SteamTotp = require('steam-totp');
  3.  
  4. const client = new SteamUser();
  5.  
  6. const logOnOptions = {
  7.   accountName: ,
  8.   password: ,
  9.   twoFactorCode: SteamTotp.generateAuthCode()
  10. };
  11.  
  12. client.logOn(logOnOptions);
  13.  
  14. client.on('loggedOn', () => {
  15.   console.log('Logged into Steam');
  16.  
  17.   client.setPersona(SteamUser.Steam.EPersonaState.Online);
  18.   client.gamesPlayed(440);
  19. });
  20.  
  21. client.on('emailInfo', (address, validated) => {
  22.     let isValidated = "is"
  23.     if (validated == false) {
  24.         isValidated = "is not"
  25.     }
  26.     console.log("your email address is " + address + " and is " + isValidated + " validated by steam");
  27. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement