Switch to cache endpoint

This commit is contained in:
Luke Robles 2023-12-28 21:37:38 -08:00
parent d85b1fe181
commit 9cbac79b11

View File

@ -52,7 +52,7 @@ def write_incident_file(file_path, url, details):
async def rsi_find(player): async def rsi_find(player):
player_url = "https://api.starcitizen-api.com/%s/v1/live/user/%s" % ( player_url = "https://api.starcitizen-api.com/%s/v1/cache/user/%s" % (
os.getenv("star_citizen_token").replace('"', ""), os.getenv("star_citizen_token").replace('"', ""),
player, player,
) )
@ -99,7 +99,7 @@ async def rsi_find(player):
embed.add_field(name="-------", value="", inline=False) embed.add_field(name="-------", value="", inline=False)
if "sid" in response["data"]["organization"]: if "sid" in response["data"]["organization"]:
org_url = "https://api.starcitizen-api.com/%s/v1/live/organization/%s" % ( org_url = "https://api.starcitizen-api.com/%s/v1/cache/organization/%s" % (
os.getenv("star_citizen_token").replace('"', ""), os.getenv("star_citizen_token").replace('"', ""),
response["data"]["organization"]["sid"], response["data"]["organization"]["sid"],
) )