Changed the Client structure
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user