Posted Sat Aug 23, 2014 2:02 pm
- Code:
var PlugAPI = require('plugapi'),
AUTH = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx=?_expires=xxxxxxxxxxxxxxxxxx==&user_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=', // Put your auth token here, it's the cookie value for usr
ROOM = '';
var bot = new PlugAPI(AUTH);
bot.connect(ROOM);
bot.on('roomJoin', function(room) {
console.log("Joined " + room);
});