fix(pterodactyl): fixed incorrect config name
Some checks failed
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 18s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 21s

This commit is contained in:
Seaswimmer 2024-02-29 16:55:45 -05:00
parent f42c536f7c
commit ee6e900e7d
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -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: