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

        if result.headlines.count <= 0
          msg.send "Couldn't find any headlines"
          return

        urls = [ ]
        for child in result.headlines
          urls.push(child.headline + "-  " + child.links.web.href)

        rnd = Math.floor(Math.random()*urls.length)
        msg.send urls[rnd]

#   HUBOT_ESPN_ACCOUNT_KEY
#
# Commands:
#   hubot espn headline - Displays a random headline from ESPN.com
#   hubot espn mlb <name of team> - Displays ESPN.com team homepage
#
# Author:
#   mjw56
