From a4f68d55eb80a9502e52977b867890171895225b Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 29 Feb 2024 23:55:51 -0500 Subject: [PATCH] fix(pterodactyl): register config on cog class initialization --- pterodactyl/pterodactyl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index f67a756..a415908 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -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()