diff --git a/src/modules/utils.py b/src/modules/utils.py index a40e152..01cc4f9 100644 --- a/src/modules/utils.py +++ b/src/modules/utils.py @@ -1,12 +1,14 @@ from twitchio.ext import commands +from utils.utils import load def prepare(bot: commands.Bot): bot.add_cog(Utils(bot)) class Utils(commands.Cog): - def __init__(self, bot: commands.Bot): - self.bot = bot + def __init__(self, client: commands.Bot): + self.client = client + self.keys = load(["DISCORD"]) @commands.command() async def discord(self, ctx: commands.Context): - await ctx.send(f"Rejoins mon Discord !") + await ctx.send(f"Rejoins mon Discord {self.keys['DISCORD']} !")