fix(pterodactyl): register config on cog class initialization
This commit is contained in:
parent
8387064ab4
commit
a4f68d55eb
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue