var Slack = require('slack-client'),
  Kimbot = require('./kimbot'),
  Foursquare = require('./clients/foursquare'),
  OpenWeather = require('./clients/openweather');

var responses = [
 '안녕! It\'s a nice day! Why not head to the market? I recommend the ' +
   'Bibbimbap!',
 'สวัสดี! A busy day with lots of meetings, but there\'s always time for ' +
   'Thai!',
 'Chào bạn! Take a trip to Camden Town and sample the excellent ' +
   'Vietnamese food!',
 'Hola! Burritos all round!',
 'Let\'s try something new... what do you suggest?'
];

var foursquare = new Foursquare(process.env.FS_CLIENT_ID,
  process.env.FS_CLIENT_SECRET);

var weather = new OpenWeather(process.env.OW_APP_ID);

var slack = new Slack(process.env.SLACK_BOT_KEY, true, true);
var kimbot = new Kimbot(slack, responses, {
  foursquare: foursquare,
  weather: weather
});

slack.on('message', function (message) {
  // Inside AnonFn. to ensure not called with slacks 'this' scope.
  kimbot.respond(message);
});

slack.login();

var Slack = require('slack-client'),
  Kimbot = require('./kimbot'),
  Foursquare = require('./clients/foursquare'),
  OpenWeather = require('./clients/openweather');

var responses = [
 '안녕! It\'s a nice day! Why not head to the market? I recommend the ' +
   'Bibbimbap!',
 'สวัสดี! A busy day with lots of meetings, but there\'s always time for ' +
   'Thai!',
 'Chào bạn! Take a trip to Camden Town and sample the excellent ' +
   'Vietnamese food!',
 'Hola! Burritos all round!',
 'Let\'s try something new... what do you suggest?'
];

var foursquare = new Foursquare(process.env.FS_CLIENT_ID,
  process.env.FS_CLIENT_SECRET);

var weather = new OpenWeather(process.env.OW_APP_ID);

var slack = new Slack(process.env.SLACK_BOT_KEY, true, true);
var kimbot = new Kimbot(slack, responses, {
  foursquare: foursquare,
  weather: weather
});

slack.on('message', function (message) {
  // Inside AnonFn. to ensure not called with slacks 'this' scope.
  if (message.user !== slack.self.id) {
    kimbot.respond(message);
  }
});

slack.login();

Stop kim responding to herself if there are multiple instances running.
Stop kim responding to herself if there are multiple instances running.
