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 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']} !")