var BotKit = require('botkit');

module.exports = Ears;

var Bot = BotKit.slackbot({
  debug: false,
  storage: undefined
});

function Ears(token) {
  this.scopes = [
    'direct_mention',
    'direct_message',
    'mention'
  ];
  this.token = token;
}

Ears.prototype.listen = function() {
  console.log('TOKEN: ' + this.token);
  this.bot = Bot.spawn({
    token: this.token
  }).startRTM();
  return this;
}

Ears.prototype.hear = function(pattern, callback) {
  Bot.hears(pattern, this.scopes, callback);
  return this;
};

@@ -387,16 +387,561 @@
 artRTM()
+%7B%0A    if (err) %7B%0A        throw new Error(err);%0A    %7D%0A%0A    // @ https://api.slack.com/methods/users.list%0A    bot.api.users.list(%7B%7D, function (err, response) %7B%0A        if (response.hasOwnProperty('members') && response.ok) %7B%0A            var total = response.members.length;%0A            for (var i = 0; i %3C total; i++) %7B%0A                var member = response.members%5Bi%5D;%0A                var id = db.saveSync(%7Bname: member.name, id: member.id%7D);%0A                //fullTeamList.push(%7Bname: member.name, id: member.id%7D);%0A            %7D%0A        %7D%0A    %7D)
 ;%0A  retu

Update ears.js