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

@@ -7,9 +7,9 @@ from discord.abc import GuildChannel
from discord.commands import SlashCommandGroup
from discord.ext import commands
from libbot import config_get
from libbot.pycord.classes import PycordBot
from libbot.sync import config_get as sync_config_get
from classes.holo_bot import HoloBot
from classes.holo_user import HoloUser
from enums import Color
from modules.database import col_users
@@ -19,8 +19,8 @@ logger = logging.getLogger(__name__)
class CustomChannels(commands.Cog):
def __init__(self, client: PycordBot):
self.client: PycordBot = client
def __init__(self, client: HoloBot):
self.client: HoloBot = client
@commands.Cog.listener()
async def on_guild_channel_delete(self, channel: GuildChannel) -> None:
@@ -234,5 +234,5 @@ class CustomChannels(commands.Cog):
)
def setup(client: PycordBot) -> None:
def setup(client: HoloBot) -> None:
client.add_cog(CustomChannels(client))