Changed the Client structure

This commit is contained in:
2024-12-17 22:14:06 +01:00
parent 62a36a3747
commit 36d63e0240
10 changed files with 117 additions and 79 deletions

18
classes/holo_bot.py Normal file
View File

@@ -0,0 +1,18 @@
from libbot.pycord.classes import PycordBot
class HoloBot(PycordBot):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
async def start(self, *args, **kwargs) -> None:
if self.scheduler is not None:
self.scheduler.start()
await super().start(*args, **kwargs)
async def close(self) -> None:
if self.scheduler is not None:
self.scheduler.shutdown()
await super().close()