 DOTA_HEROES = {}
 
 #
+# Brain / Persistence
+#
+_brain = null
+_GetSteamData = ->
+    _brain.data.steam or= {}
+
+#
 # Steam API
 #
 GetSteamResult = (msg, endpoint, params = {}, handler, version = 1) ->

# User API
#
GetSteamID = (msg, customURL, callback) ->
    GetSteamResult 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
        callback object.response.steamid

_GetCommunityID = (steamID) ->
    buffer = new Buffer 8
    buffer.writeUInt64LE steamID, 0
    communityID = buffer.readUInt32LE 0
    communityID

GetPlayerSummaries = (msg, genericID, callback) ->

#
STEAM_API_KEY = process.env.STEAM_API_KEY
STEAM_API_URL = "https://api.steampowered.com"
DOTA_MAX_RESULTS = process.env.DOTA_MAX_RESULTS or 5

#
