 
 require('dotenv').config()
 
+Botkit = require 'botkit'
 SlackStrategy = require('./lib/passport-slack.js')
 async = require 'artillery-async'
 bodyParser = require 'body-parser'


  db.get "SELECT value FROM metadata WHERE key = $key", {$key: key}, (err, row) ->
    if err then return cb "Couldn't get metadata for team #{team}: #{err}"
    return cb null, row[0]

setMetaData = (team, key, value, cb) ->
  db = getDatabase team


app = express()

# AUTH --------------------------------------------------------------------------

passport.use new SlackStrategy {
  clientID: process.env.SLACK_CLIENT_ID
  clientSecret: process.env.SLACK_CLIENT_SECRET
