Changed the Client structure
This commit is contained in:
@@ -3,9 +3,9 @@ import logging
|
||||
from discord import ApplicationContext, Embed, User, option, slash_command
|
||||
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 modules.utils_sync import guild_name
|
||||
from modules.waifu_pics import waifu_pics
|
||||
|
||||
@@ -13,8 +13,8 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class Fun(commands.Cog):
|
||||
def __init__(self, client: PycordBot):
|
||||
self.client: PycordBot = client
|
||||
def __init__(self, client: HoloBot):
|
||||
self.client: HoloBot = client
|
||||
|
||||
@slash_command(
|
||||
name="action",
|
||||
@@ -54,5 +54,5 @@ class Fun(commands.Cog):
|
||||
await ctx.respond(embed=embed)
|
||||
|
||||
|
||||
def setup(client: PycordBot) -> None:
|
||||
def setup(client: HoloBot) -> None:
|
||||
client.add_cog(Fun(client))
|
||||
|
Reference in New Issue
Block a user