Advertisement
Sergiovan

Untitled

Nov 29th, 2014
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var fs = require('fs');
  2. var steam = require('steam');
  3.  
  4. var bot = new steam.SteamClient();
  5.  
  6. var sentryFile = 'sentry';
  7. var sentry;
  8. if (fs.existsSync(sentryFile)) {
  9.     sentry = fs.readFileSync(sentryFile);
  10. }
  11.  
  12. bot.logOn({ accountName: 'botName', password: 'botPass', authCode: 'botAuth', shaSentryfile: sentry });
  13.  
  14. bot.on('loggedOn', function() {
  15.     bot.joinChat('whateverGroup');
  16.     bot.setPersonaState(steam.EPersonaState.Online);
  17. });
  18.  
  19. bot.on('chatMsg', function(chatID, message, entryType, userID){
  20.     console.log(bot.chatRooms[chatID]);
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement