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

View File

@@ -3,16 +3,16 @@ from typing import Dict, List, Any
from discord import Cog, Message
from discord.ext import commands
from libbot.pycord.classes import PycordBot
from classes.holo_bot import HoloBot
from modules.database import col_analytics
logger = logging.getLogger(__name__)
class Analytics(commands.Cog):
def __init__(self, client: PycordBot):
self.client: PycordBot = client
def __init__(self, client: HoloBot):
self.client: HoloBot = client
@Cog.listener()
async def on_message(self, message: Message) -> None:
@@ -60,5 +60,5 @@ class Analytics(commands.Cog):
)
def setup(client: PycordBot) -> None:
def setup(client: HoloBot) -> None:
client.add_cog(Analytics(client))