diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 499c297..6c7ff97 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -238,7 +238,7 @@ class Mybot(commands.Cog): barillet = [False, False, True, False, False] bullet = random.choice(barillet) if bullet == True: - joke = bot.get_command('joke') + joke = self.bot.get_command('joke') await joke.invok(ctx, 'omawa_shindeiru.mp3') await member.edit(mute=True) await ctx.channel.send("Perdu, tu es mute pendant 60 secondes!")