var constants = require('../constants')

function logError (bot, err, msg) {
  if (err) {
    var message = msg || 'Danger Will Robinson!'
    bot.botkit.log(message, err)
  }
}

module.exports = function (bot, message, cb) {

}

@@ -37,193 +37,800 @@
 s')%0A
-%0Afunction logError (bot, err, msg) %7B%0A  if (err) %7B%0A    var message = msg %7C%7C 'Danger Will Robinson!'%0A    bot.botkit.log(message, err)%0A  %7D%0A%7D%0A%0Amodule.exports = function (bot, message, cb) %7B
+var slackWebApi = require('../lib/Slack_web_api.js')%0A%0Afunction disableService (service) %7B%0A  // Disables Service%0A  console.log(%60disable $%7Bservice%7D%60)%0A%7D%0A%0Afunction enableService (service) %7B%0A  // Enables Service%0A  console.log(%60enable $%7Bservice%7D%60)%0A%7D%0A%0Avar accessMethods = %7B%0A  disable: disableService,%0A  enable: enableService%0A%7D%0A%0Afunction logError (bot, err, msg) %7B%0A  if (err) %7B%0A    var message = msg %7C%7C 'Danger Will Robinson!'%0A    bot.botkit.log(message, err)%0A  %7D%0A%7D%0A%0Amodule.exports = function (bot, message, cb) %7B%0A  var text = message.text%0A  var action = text.substr(0, text.indexOf(' '))%0A  var service = text.substr(text.indexOf(' ') + 1)%0A  var user = message.user%0A%0A  bot.api.users.info(%7Buser%7D, (err, res) =%3E %7B%0A    if (res.user && res.user.is_admin) %7B%0A      accessMethods%5Baction%5D(service)%0A    %7D%0A  %7D)
 %0A%0A%7D%0A

validate user admin status, call appropriate function