Skip to content

Commit

Permalink
delay this
Browse files Browse the repository at this point in the history
  • Loading branch information
Brain-dawg committed Jan 22, 2025
1 parent e6815ab commit f16943b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion mge/mge.nut
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ foreach (sound in StockSounds)
::Arenas <- {}
::Arenas_List <- [] // Need ordered arenas for selection with client commands like !add

local hostname = Convars.GetStr("hostname")
local hostname = ""
local local_time = {}
LocalTime(local_time)
local _split = split(hostname, "#")
Expand Down Expand Up @@ -100,6 +100,8 @@ local _split_region = _split.len() == 1 ? ["", "]"] : split(_split[1], "[")
campaign_name = "MGE"
}

EntFire("worldspawn", "RunScriptCode", "SERVER_DATA.server_name = Convars.GetStr(`hostname`)", 1)

// printl("\n\n" + SERVER_DATA.server_key + "\n\n")
// printl(SERVER_DATA.region)
// printl()
Expand Down
4 changes: 3 additions & 1 deletion mge/vpi/vpi_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@ async def VPI_MGE_UpdateServerData(info, cursor):
print(name)

response = requests.get(rf"https://api.steampowered.com/IGameServersService/GetServerList/v1/?access_token={ACCESS_TOKEN}&limit=50000&filter=\gamedir\tf\gametype\mge\gametype\potato")

print("RESPONSE:")
print(response)
print("RESPONSE JSON:")
print(response.json())
server = [server for server in response.json()['response']['servers'] if server['name'] == name][0]

Expand Down

0 comments on commit f16943b

Please sign in to comment.