           body: JSON.stringify
            entity_id: "slack-ops"
            message_type: "critical"
-           entity_display_name: "Paged by @#{msg.message.user.name} in ##{room}"
+           entity_display_name: "Paged by @#{msg.message.user.name} in ##{room.name}"
            state_message: message
         .then (res) ->
           checkStatus res

      else
        msg.reply "I can't determine who is on call, please contact your friendly administrator"

  robot.respond /whois oncall/, (msg) ->
    room = msg.message.room
    team = teams[room]
    return invalidChannel msg unless team

    whoIsOncall team, (person) ->

        [ __, person ] = oncall.summary.match /(?:OVERRIDE:\s)?(.*)/
      cb person

  robot.respond /page on\s?call(?:\s+(.*))?/, (msg) ->
    [ __, message ] = msg.match
    room = getRoom msg
    team = teams[room.name]
    return invalidChannel msg unless team

    whoIsOncall team, (person) ->
