back to live endpoing
This commit is contained in:
parent
9cbac79b11
commit
99ec5b5ebc
@ -52,11 +52,12 @@ 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/cache/user/%s" % (
|
player_url = "https://api.starcitizen-api.com/%s/v1/live/user/%s" % (
|
||||||
os.getenv("star_citizen_token").replace('"', ""),
|
os.getenv("star_citizen_token").replace('"', ""),
|
||||||
player,
|
player,
|
||||||
)
|
)
|
||||||
response = requests.get(player_url).json()
|
response = requests.get(player_url).json()
|
||||||
|
print(response)
|
||||||
|
|
||||||
if not response["data"]:
|
if not response["data"]:
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
@ -99,7 +100,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/cache/organization/%s" % (
|
org_url = "https://api.starcitizen-api.com/%s/v1/live/organization/%s" % (
|
||||||
os.getenv("star_citizen_token").replace('"', ""),
|
os.getenv("star_citizen_token").replace('"', ""),
|
||||||
response["data"]["organization"]["sid"],
|
response["data"]["organization"]["sid"],
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user