 pagerDutySubdomain   = process.env.HUBOT_PAGERDUTY_SUBDOMAIN
 pagerDutyBaseUrl     = "https://#{pagerDutySubdomain}.pagerduty.com/api/v1"
 pagerDutyApiKey      = process.env.HUBOT_PAGERDUTY_APIKEY
+pagerDutyScheduleId  = process.env.HUBOT_PAGERDUTY_SCHEDULE_ID
 
 module.exports = (robot) ->
   robot.respond /pager( me)?$/i, (msg) ->

#   hubot who's on call - return the username of who's on call
#   hubot pager me page <msg> - create a new incident
#   hubot pager me 60 - take the pager for 60 minutes
#   hubot pager me incidents - return the current incidents
#   hubot pager me problems - return all open inicidents
#   hubot pager me ack 24 - ack incident #24

      }
      withCurrentOncall msg, (old_username) ->
        data = { 'override': override }
        pagerDutyPost msg, "/schedules/#{pagerDutyScheduleId}/overrides", data, (json) ->
          if json.override
            start = moment(json.override.start)
            end = moment(json.override.end)
