gsd 2 years ago
parent
commit
5d1041eecf
  1. 4
      player.py

4
player.py

@ -1,8 +1,10 @@
from email import message
import json
import aiohttp, os
from datetime import datetime
from discord import Embed
from exceptions import *
import yarl
class Player:
original_request = ""
@ -139,7 +141,7 @@ class Player:
async def GetSteamIDOfProfile(self, any:str):
async with aiohttp.ClientSession(cookies={"secretkey":os.getenv("BACKEND_SECRETKEY")}) as session:
async with session.get(f"{os.getenv('BACKEND_URL')}/api/profile/steam?any={any}", ssl=False) as response:
async with session.post(url=f"{os.getenv('BACKEND_URL')}/api/profile/steam", json = {"any":any}, ssl=False) as response:
try:
response = await response.json()
except:

Loading…
Cancel
Save