         for steamID, user of steamData()
             return handler steamID if user.url is customURL
 
-        steam_request msg, "/ISteamUser/ResolveVanityURL", vanityurl: customURL, (object) ->
+        steamRequest msg, "/ISteamUser/ResolveVanityURL", vanityurl: customURL, (object) ->
             if object.response.success is 42
                 msg.reply "The custom URL you have entered (\"#{customURL}\") does not exist."
                 return

    for status, tower in "00000000000#{(+dec).toString(2)}".slice(-11).split('')
        if parseInt(status) then towers[tower] else continue

steam_request = (msg, endpoint, params = {}, handler, version = 1) ->
    params.key = STEAM_API_KEY

    msg.http("http://api.steampowered.com#{endpoint}/v#{version}/")


    robot.respond /steam status (.*)/i, (msg) ->
        summary = (steamID) ->
            steamRequest msg, "/ISteamUser/GetPlayerSummaries", steamids: steamID, (object) ->
                player = object.response.players[0]
                status = if player.communityvisibilitystate is 1 then 'Unavailable (Private)' else personaStates[player.personastate]
                lastOnline = moment.unix(player.lastlogoff).fromNow()
