Add Pterodactyl cog #19

Merged
cswimr merged 139 commits from pterodactyl into main 2024-03-02 00:07:42 -05:00
Showing only changes of commit 680f92572c - Show all commits

View file

@ -37,7 +37,7 @@ class Pterodactyl(commands.Cog):
try:
client = PterodactylClient(base_url, api_key).client
websocket_credentials = client.servers.get_websocket(server_id)
self.logger.debug("Websocket connection details retrieved: " + websocket_credentials)
self.logger.debug(f"Websocket connection details retrieved:\nSocket: {websocket_credentials['data']['socket']}\nToken: {websocket_credentials['data']['token']}")
except exceptions.ClientConfigError as e:
self.logger.error(f'Failed to initialize Pterodactyl client: {e}')
return