This commit is contained in:
2024-06-23 12:05:03 +02:00
parent d168821fb5
commit f67375ff4f
12 changed files with 114 additions and 51 deletions

View File

@@ -2,6 +2,7 @@ import logging
from discord import Cog, Message
from discord.ext import commands
from libbot.pycord.classes import PycordBot
from modules.database import col_analytics
@@ -9,7 +10,7 @@ logger = logging.getLogger(__name__)
class Analytics(commands.Cog):
def __init__(self, client):
def __init__(self, client: PycordBot):
self.client = client
@Cog.listener()
@@ -54,3 +55,7 @@ class Analytics(commands.Cog):
"attachments": attachments,
}
)
def setup(client: PycordBot):
client.add_cog(Analytics(client))