Advertisement
Guest User

Untitled

a guest
May 6th, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. var SteamUser = require('steam-user');
  2. var rl = require('readline');
  3. var client = new SteamUser();
  4. var prompts = rl.createInterface(process.stdin, process.stdout);
  5.  
  6. prompts.question("Username: ", function(user){ //asks what your username is and stores it to the "user" var
  7. prompts.question("Password: ", function(pass){ //asks what your password is and stores it to the "pass" var
  8. prompts.close() //closes the prompt
  9. var logOnOptions = { //sets the log on options
  10. accountName: user,
  11. password: pass
  12. };
  13. client.logOn(logOnOptions); //logs on
  14. client.on('loggedOn', () => {
  15. client.setPersona(SteamUser.Steam.EPersonaState.Online); //sets status to online
  16. client.gamesPlayed([730]); //runs csgo (you can change the Game ID if you wish)
  17. console.log('Logged on. Running CS:GO'); //says that csgo is running
  18. });
  19. });
  20. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement