Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var SteamUser = require('steam-user');
- var rl = require('readline');
- var client = new SteamUser();
- var prompts = rl.createInterface(process.stdin, process.stdout);
- prompts.question("Username: ", function(user){ //asks what your username is and stores it to the "user" var
- prompts.question("Password: ", function(pass){ //asks what your password is and stores it to the "pass" var
- prompts.close() //closes the prompt
- var logOnOptions = { //sets the log on options
- accountName: user,
- password: pass
- };
- client.logOn(logOnOptions); //logs on
- client.on('loggedOn', () => {
- client.setPersona(SteamUser.Steam.EPersonaState.Online); //sets status to online
- client.gamesPlayed([730]); //runs csgo (you can change the Game ID if you wish)
- console.log('Logged on. Running CS:GO'); //says that csgo is running
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement