Switch to cache endpoint
This commit is contained in:
parent
d85b1fe181
commit
9cbac79b11
@ -52,7 +52,7 @@ def write_incident_file(file_path, url, details):
|
||||
|
||||
|
||||
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('"', ""),
|
||||
player,
|
||||
)
|
||||
@ -99,7 +99,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/live/organization/%s" % (
|
||||
org_url = "https://api.starcitizen-api.com/%s/v1/cache/organization/%s" % (
|
||||
os.getenv("star_citizen_token").replace('"', ""),
|
||||
response["data"]["organization"]["sid"],
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user