forked from cswimr/SeaCogs
fix(pterodactyl): fixed incorrect config name
This commit is contained in:
parent
f42c536f7c
commit
ee6e900e7d
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ class Pterodactyl(commands.Cog):
|
||||||
|
|
||||||
async def get_info(self, username: str) -> Optional[dict]:
|
async def get_info(self, username: str) -> Optional[dict]:
|
||||||
self.logger.debug("Retrieving player info for %s", username)
|
self.logger.debug("Retrieving player info for %s", username)
|
||||||
endpoint = await self.config.endpoint()
|
endpoint = await self.config.api_endpoint()
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
async with session.get(f"https://playerdb.co/api/player/{endpoint}/{username}") as response:
|
async with session.get(f"https://playerdb.co/api/player/{endpoint}/{username}") as response:
|
||||||
if response.status == 200:
|
if response.status == 200:
|
||||||
|
|
Loading…
Reference in a new issue