Discord/classes/holo_bot.py

19 lines
472 B
Python
Raw Normal View History

2024-12-17 23:14:06 +02:00
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()