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