back to live endpoing

This commit is contained in:
Luke Robles 2023-12-29 12:03:59 -08:00
parent 9cbac79b11
commit 99ec5b5ebc

View File

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