PycordBot now handles scheduler on its own

This commit is contained in:
Profitroll 2024-12-26 19:18:02 +01:00
parent 162898f5eb
commit 0195706e92
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2

View File

@ -4,15 +4,3 @@ 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()