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 a4f68d55eb - Show all commits

View file

@ -9,7 +9,7 @@ from redbot.core import commands
from redbot.core.bot import Red
from redbot.core.utils.chat_formatting import box
from pterodactyl.config import config
from pterodactyl.config import config, register_config
from pterodactyl.logger import logger
@ -21,6 +21,7 @@ class Pterodactyl(commands.Cog):
self.client: Optional[PterodactylClient] = None
self.task: Optional[asyncio.Task] = None
self.websocket: Optional[websockets.WebSocketClientProtocol] = None
register_config(config)
async def cog_load(self) -> None:
self.task = self.get_task()