Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var fs = require('fs');
- var steam = require('steam');
- var bot = new steam.SteamClient();
- var sentryFile = 'sentry';
- var sentry;
- if (fs.existsSync(sentryFile)) {
- sentry = fs.readFileSync(sentryFile);
- }
- bot.logOn({ accountName: 'botName', password: 'botPass', authCode: 'botAuth', shaSentryfile: sentry });
- bot.on('loggedOn', function() {
- bot.joinChat('whateverGroup');
- bot.setPersonaState(steam.EPersonaState.Online);
- });
- bot.on('chatMsg', function(chatID, message, entryType, userID){
- console.log(bot.chatRooms[chatID]);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement