Advertisement
Guest User

Untitled

a guest
Feb 11th, 2019
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. const SteamUser = require('steam-user');
  2. const SteamTotp = require('steam-totp');
  3. const client = new SteamUser();
  4. const SteamCommunity = require('steamcommunity');
  5. const TradeOfferManager = require('steam-tradeoffer-manager');
  6. const community = new SteamCommunity();
  7. const manager = new TradeOfferManager ({
  8. steam: client,
  9. community: community,
  10. language: 'en'
  11. });
  12. const config = require('./config.json');
  13.  
  14. const logOnOptions = {
  15. accountName: config.username,
  16. password: config.password,
  17. twoFactorCode: SteamTotp.generateAuthCode(config.sharedSecret)
  18. };
  19. const Messages = {
  20. Msg:{
  21. unknown: ' ',
  22. acceptedFriend: 'Heeeyyyy! Thanks for adding :) SPAM = AUTOBLOCK',
  23. declinedMsg: ' '
  24. },
  25. };
  26. const commands = {
  27. cmd:{
  28. '!author': 'TikeN',
  29. '!commands': 'hey! nothing here!'
  30. }
  31. };
  32. const editables = {
  33. ownerID: '76561198091951744',
  34. adminID: ['76561198091951744']
  35. }
  36.  
  37. client.logOn(logOnOptions);
  38.  
  39. client.on('loggedOn', () => {
  40. console.log('Zalogowano do T-BOTA!');
  41.  
  42. client.setPersona(SteamUser.Steam.EPersonaState.Online);
  43. client.gamesPlayed(["NOTHING ;)"]); <---------------- tu gierka
  44. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement