From eee49784bb301e3dd24f4780e1eb0ce3cbc52cd1 Mon Sep 17 00:00:00 2001 From: Anri Kennel Date: Mon, 9 Nov 2020 09:58:01 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9placement=20fonction=20setup=20vers=20le?= =?UTF-8?q?=20haut=20du=20fichier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cogs/commands.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cogs/commands.py b/cogs/commands.py index 0fa3757..1f587da 100755 --- a/cogs/commands.py +++ b/cogs/commands.py @@ -3,6 +3,9 @@ from discord.ext import commands from random import randint, choice import time +def setup(bot): + bot.add_cog(Commands(bot)) + class Commands(commands.Cog): """Commandes générales du bot.""" @@ -144,8 +147,4 @@ class Commands(commands.Cog): embed.add_field(name='Channels', value=f'{text} textuelles\n{voice} vocales') # ca peut être utile de connaitre quel version le bot utilise sans devoir se connecter a distance au serveur qui fait tourner le bot embed.set_footer(text=f'Basé sur discord.py {discord.__version__}') - await ctx.send(embed=embed) - - -def setup(bot): - bot.add_cog(Commands(bot)) \ No newline at end of file + await ctx.send(embed=embed) \ No newline at end of file