Added stubs for classes and cogs, performed a cleanup, added more database indexes

This commit is contained in:
2025-04-18 00:48:09 +02:00
parent 82c57a3dd1
commit 691dd1c958
9 changed files with 104 additions and 23 deletions

View File

@@ -2,7 +2,6 @@ import logging
from logging import Logger
from typing import Any
from aiohttp import ClientSession
from discord import User
from libbot.cache.manager import create_cache_client
from libbot.pycord.classes import PycordBot as LibPycordBot
@@ -12,17 +11,12 @@ from classes import PycordUser
logger: Logger = logging.getLogger(__name__)
# from modules.tracking.dhl import update_tracks_dhl
class PycordBot(LibPycordBot):
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
self._set_cache_engine()
self.client_session = ClientSession()
if self.scheduler is None:
return
@@ -63,8 +57,6 @@ class PycordBot(LibPycordBot):
await super().start(*args, **kwargs)
async def close(self, **kwargs) -> None:
await self.client_session.close()
if self.scheduler is not None:
self.scheduler.shutdown()