diff --git a/cogs/commands.py b/cogs/commands.py index f582771..f680e0b 100755 --- a/cogs/commands.py +++ b/cogs/commands.py @@ -74,7 +74,7 @@ class Commands(commands.Cog): embed.add_field(name = 'Réponse :', value = answer.replace('False', 'Faux').replace('True', 'Vrai'), inline = False) await ctx.message.add_reaction(emoji = '✅') await ctx.send(content = None, embed = embed) - @calc.error + @_calc.error async def calc_error(self, ctx, error): await ctx.send("Tu n'as pas spécifié de calcul.") @@ -242,7 +242,7 @@ class Commands(commands.Cog): else: message = await ctx.send("Aucun salon vocal dans ce serveur, réagissez à ce message avec ✋ pour signaler votre présence (attention, je réagis aussi).") await message.add_reaction(emoji = "✋") - @appel.error + @_appel.error async def appel_error(self, ctx, error): if isinstance(error, commands.CheckFailure): await ctx.send("Tu n'as pas la permission de faire cette commande, demande à un professeur.") diff --git a/cogs/help.py b/cogs/help.py index c9de194..7409e49 100755 --- a/cogs/help.py +++ b/cogs/help.py @@ -12,8 +12,8 @@ class Help(commands.Cog): self.bot = bot self.bot.remove_command("help") - @commands.command() - async def help(self, ctx, *cog): + @commands.command(name='help') + async def _help(self, ctx, *cog): """Affiche toutes les commandes du bot.\n ➡ Syntaxe: .help [catégorie]⁢⁢⁢⁢⁢⁢⁢⁢⁢⁢""" if not cog: """Liste des Cog"""