Advertisement
Guest User

Untitled

a guest
Jan 30th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. // Reload every 2 hours
  2. setTimeout(function () {
  3. process.exit(0);
  4. }, 1000*3600*2);
  5.  
  6. // Requires
  7. var SteamUser = require('steam-user')
  8. var SteamTOTP = require('steam-totp');
  9.  
  10. // Instance
  11. var client = new SteamUser();
  12.  
  13. // Secret personal data : klonaway
  14. var accountName = "yourAccount";
  15. var password = "yourPassword";
  16. var sharedSecret = "yourSharedSecret";
  17. var identitySecret = "yourIdentitySecret";
  18.  
  19. // Preparing log on options
  20. var logOnOptions = {
  21. 'accountName': accountName,
  22. 'password': password,
  23. 'twoFactorCode': SteamTOTP.generateAuthCode(sharedSecret)
  24. };
  25.  
  26. // Sign into Steam
  27. client.logOn(logOnOptions);
  28.  
  29. client.on('loggedOn', function(details) {
  30.  
  31. console.log("Successfully logged on Steam as " + accountName);
  32.  
  33. client.webLogOn();
  34.  
  35. client.setPersona(1);
  36.  
  37. client.gamesPlayed([730]);
  38.  
  39. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement