       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]
+  robot.respond /who\s?is on\s?call/, (msg) ->
+    room = getRoom msg
+    team = teams[room.name]
     return invalidChannel msg unless team
 
     whoIsOncall team, (person) ->

fuzzy = require 'fuzzy'

module.exports = (robot) ->
  url = process.env.HUBOT_VICTOROPS_POST_URL
  teams = JSON.parse process.env.HUBOT_VICTOROPS_TEAMS_MAP
  calendars = JSON.parse process.env.HUBOT_VICTOROPS_TEAMS_ICAL

  parseJSON = (response) ->
    return response.json()

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