     "https://sheerepiphany.files.wordpress.com/2015/04/a.jpg",
     "http://i.imgur.com/aimsF.jpg"
   ]
-
 
   robot.hear /who(’|'| i)s awesome/i, (msg) ->
     msg.reply msg.random youre_awesome

module.exports = (robot) ->

  $baseurl = process.env.AWESOME_API_URL || "http://localhost:"+process.env.PORT

        state = JSON.parse body
        msg.send state.description

  robot.respond /set (our|my) (.*) state to (.*)/i, (msg) ->
    if robot.brain.board is undefined or robot.brain.board[msg.message.room] is undefined
      msg.reply "I can't do that until you pick a board!"
    else
      data = JSON.stringify({
        description: msg.match[3]
      })
      msg.http($baseurl+"/teams/"+robot.brain.team[msg.message.room]._id+"/boards/"+robot.brain.board[msg.message.room]._id+"/"+msg.match[2].toLowerCase()+"State")
      .header('Content-Type', 'application/json')
      .put(data) (err, res, body) ->
        msg.send msg.match[2]+" state updated!"
        msg.send "'"+msg.match[3]+"'"

  robot.respond /define awesome as (.*)/i, (msg) ->
    if robot.brain.board is undefined or robot.brain.board[msg.message.room] is undefined
