           else
             msg.send "Something came up: #{body}"
 
+  robot.respond /sprintly *(?: +(\d+))?(?: +(.*))?deploy +([\d]+(,[\d]+)*)/i, (msg) ->
+    query =
+      environment: msg.match[2] ? msg.robot.brain.data.sprintly?.env
+      numbers: msg.match[3]
+
+    if query.environment?
+      sprintly(msg).product()
+        .scope('deploys.json')
+        .post(qs.stringify(query)) (err, res, body) ->
+          if res.statusCode < 400
+            apiRes = JSON.parse body
+            msg.send "Successfully marked #{apiRes.items.length} items as deployed"
+          else
+            msg.send "Something came up: #{body}"
+    else
+      msg.send "No environment has been specified, you can set a default with 'sprintly default_env production'"
+
 DummyClient = ->
 self = -> this
 for method in ['scope', 'query', 'product']


sprintly = (msg, auth) ->
  if auth ?= sprintlyUser(msg).auth
    client = msg.http('https://sprint.ly')
      .header('accept', 'application/json')
      .header('authorization', "Basic #{new Buffer(auth).toString('base64')}")
      .path('/api')

    robot.brain.data.sprintly ?= {}
    robot.brain.data.sprintly.product_id = msg.match[1]
    msg.send "Default Product ID set to #{msg.match[1]}"

  robot.respond /sprintly +default_env +(.*)/i, (msg) ->
    robot.brain.data.sprintly ?= {}
    robot.brain.data.sprintly.env = msg.match[1]
    msg.send "Default environment set to #{msg.match[1]}"

  robot.respond /sprintly *(?: +(\d+))?(?: +(backlog|in-progress|completed|accepted))?(?: +(\d+))? *$/i, (msg) ->
    query = status: msg.match[2] ? 'in-progress'
