adding link of discord
This commit is contained in:
parent
d9ae68b21b
commit
52612824e6
1 changed files with 5 additions and 3 deletions
|
@ -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']} !")
|
||||||
|
|
Loading…
Reference in a new issue