         history genericID
     # Custom URL -> Steam ID
     else
-        GetSteamID msg, genericID, (steamID) ->
+        GetSteamID res, genericID, (steamID) ->
             history steamID, "profile URL"
 
 _GetTowers = (dec) ->

                target = _GetPlayer communityID, match.players
                hero = DOTA_HEROES[target.hero_id] or "No hero"
                # TODO: W / L TBA
                msg.send "Match ID: #{match.match_id} | Lobby: #{DOTA_LOBBIES[match.lobby_type]} | Hero: #{hero} | #{date}"

    # GET Player Dota 2 match details
    robot.respond /dota match (\d+)\s*(.+)?/i, (msg) ->
        matchID = msg.match[1]
        genericID = msg.match[2]
        GetMatchDetails msg, matchID, (match) ->
            date = moment.unix(match.start_time).fromNow()
            duration = moment.duration(match.duration, "seconds").minutes()
            firstBlood = moment.duration(match.first_blood_time, "seconds").humanize()

#
Init = (robot) ->
    if not STEAM_API_KEY?
        return robot.logger.error "hubot-steam-webapi: Missing STEAM_API_KEY in environment. Please set and try again."

    GetHeroes robot, (heroes) ->
        DOTA_HEROES = heroes
