         state = JSON.parse body
         msg.send state.description
 
-  robot.respond /set (our|my) current state to (.*)/i, (msg) ->
+  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[2]
+        description: msg.match[3]
       })
-      msg.http($baseurl+"/teams/"+robot.brain.team[msg.message.room]._id+"/boards/"+robot.brain.board[msg.message.room]._id+"/currentState")
+      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 "Current State updated!"
-        msg.send "'"+msg.match[2]+"'"
-
-  robot.respond /set (our|my) target 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[2]
-      })
-      msg.http($baseurl+"/teams/"+robot.brain.team[msg.message.room]._id+"/boards/"+robot.brain.board[msg.message.room]._id+"/targetState")
-      .header('Content-Type', 'application/json')
-      .put(data) (err, res, body) ->
-        msg.send "Current State updated!"
-        msg.send "'"+msg.match[2]+"'"
-
-  robot.respond /set (our|my) awesome 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[2]
-      })
-      msg.http($baseurl+"/teams/"+robot.brain.team[msg.message.room]._id+"/boards/"+robot.brain.board[msg.message.room]._id+"/awesomeState")
-      .header('Content-Type', 'application/json')
-      .put(data) (err, res, body) ->
-        msg.send "Current State updated!"
-        msg.send "'"+msg.match[2]+"'"
+        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

module.exports = (robot) ->

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

    "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
