 
   # TODO
   #   hubot pd [who is] next [oncall] - tells who is next on call
-    robot.respond /(?:pd )?(?:who(?: is|'s) )?(next on ?call|on ?call next)\s*$/, (res) ->
+    robot.respond (
+      /(?:pd )?(?:who(?: is|'s) )?(next on ?call|on ?call next)\s*$/
+    ), 'pd_next_oncall', (res) ->
       pagerv2.getSchedule()
       .then (data) ->
         fromtime = moment(data.end).utc().add(1, 'minute').format()

      res.finish()

  #   hubot pd ack               - acknowledges any unack incidents
    robot.respond /pd ack(?: all)?\s*$/, (res) ->
      pagerv2.updateIncidents(res.envelope.user)
      .then (data) ->
        plural = ''

      res.finish()

  #   hubot pd res|resolve       - acknowledges any unack incidents
    robot.respond /pd res(?:olve)?(?: all)?\s*$/, 'pd_res_all', (res) ->
      pagerv2.updateIncidents(res.envelope.user, '', 'acknowledged', 'resolved')
      .then (data) ->
        plural = ''
