Advertisement
Guest User

Untitled

a guest
Dec 31st, 2017
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. const SteamUser = require('steam-user');
  2. const steamTotp = require('steam-totp');
  3. const SteamCommunity = require('steamcommunity')
  4. const TradeOfferManager = require('steam-tradeoffer-manager')
  5.  
  6. const Prices = require('./prices.json');
  7. const config = require('./config.json');
  8.  
  9. const client = new SteamUser();
  10. const community = new SteamCommunity();
  11. const manager = new TradeOfferManager ({
  12. })
  13.  
  14. const logOnOptions = {
  15. accountName: config.username,
  16. password: config.password,
  17. twoFactorCode: steamTotp.generateAuthCode(config.sharedSecret)
  18. };
  19.  
  20. client.logOn(logOnOptions);
  21.  
  22. client.on('loggedOn', () => {
  23. console.log('Succesfully logged on.');
  24. client.setPersona(SteamUser.Steam.EPersonaState.Online);
  25. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement