SHARE
TWEET

Steam Idler - node.js

a guest Aug 12th, 2016 208 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var SteamUser = require('steam-user');
  2. var SteamTotp = require('steam-totp');
  3. var user = new SteamUser();
  4.  
  5. user.logOn({
  6.     accountName: "EnterAccountName",
  7.     password: "EnterAccountPassword",
  8.     twoFactorCode: SteamTotp.getAuthCode("")
  9. });
  10.  
  11. user.on('webSession', function() {
  12.     console.log('Logged in!');
  13.     user.setPersona(SteamUser.Steam.EPersonaState.Online) // Set to offline or online - your choice.
  14.     user.gamesPlayed([10]); // Enter ID of the steam game. Found in the store link (/app/10) is Counter-Strike.
  15.                             // more than one game can be idled by separating the ids with commas.
  16. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top