         rnd = Math.floor(Math.random()*urls.length)
         msg.send urls[rnd]
 
-  robot.respond /(espn)( mlb)? (.*)/i, (msg) ->
+  robot.respond /(espn)( mlb) (.*)/i, (msg) ->
     msg.http('http://api.espn.com/v1/sports/baseball/mlb/teams?apikey=' + espnApiKey)
       .get() (err, res, body) ->
         result = JSON.parse(body)	

# Description:
#   Grab a headline from ESPN through querying hubot
#
# Dependencies:
#   None


          if team is input || city is input
            msg.send 'Team news for the '+ child.location + ' ' + child.name + '- ' + child.links.web.teams.href

  robot.respond /(espn)( nfl) (.*)/i, (msg) ->
      msg.http('http://api.espn.com/v1/sports/football/nfl/teams?apikey=' + espnApiKey)
        .get() (err, res, body) ->
          result = JSON.parse(body)

          for child in result.sports[0].leagues[0].teams
            team = child.name.toLowerCase()
            city = child.location.toLowerCase()
            input = msg.match[3].toLowerCase()

            if team is input || city is input
              msg.send 'Team news for the '+ child.location + ' ' + child.name + '- ' + child.links.web.teams.href

  robot.respond /(espn)( nba) (.*)/i, (msg) ->
      msg.http('http://api.espn.com/v1/sports/basketball/nba/teams?apikey=' + espnApiKey)
        .get() (err, res, body) ->
          result = JSON.parse(body)

          for child in result.sports[0].leagues[0].teams
            team = child.name.toLowerCase()
            city = child.location.toLowerCase()
            input = msg.match[3].toLowerCase()

            if team is input || city is input
              msg.send 'Team news for the '+ child.location + ' ' + child.name + '- ' + child.links.web.teams.href

  robot.respond /(espn)( nhl) (.*)/i, (msg) ->
      msg.http('http://api.espn.com/v1/sports/hockey/nhl/teams?apikey=' + espnApiKey)
        .get() (err, res, body) ->
          result = JSON.parse(body)

          for child in result.sports[0].leagues[0].teams
            team = child.name.toLowerCase()
            city = child.location.toLowerCase()
            input = msg.match[3].toLowerCase()

            if team is input || city is input
              msg.send 'Team news for the '+ child.location + ' ' + child.name + '- ' + child.links.web.teams.href
