adding link of discord

This commit is contained in:
Mylloon 2021-07-27 03:03:03 +02:00
parent d9ae68b21b
commit 52612824e6

View file

@ -1,12 +1,14 @@
from twitchio.ext import commands from twitchio.ext import commands
from utils.utils import load
def prepare(bot: commands.Bot): def prepare(bot: commands.Bot):
bot.add_cog(Utils(bot)) bot.add_cog(Utils(bot))
class Utils(commands.Cog): class Utils(commands.Cog):
def __init__(self, bot: commands.Bot): def __init__(self, client: commands.Bot):
self.bot = bot self.client = client
self.keys = load(["DISCORD"])
@commands.command() @commands.command()
async def discord(self, ctx: commands.Context): async def discord(self, ctx: commands.Context):
await ctx.send(f"Rejoins mon Discord !") await ctx.send(f"Rejoins mon Discord {self.keys['DISCORD']} !")