From b27a9b00a781453373227f9f954eb587a2b95008 Mon Sep 17 00:00:00 2001 From: BFlow Date: Sun, 17 Nov 2019 20:10:10 +0100 Subject: [PATCH] correction de la commande slap --- kabot/kabot/kabot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 447e869..19ec8c1 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -92,11 +92,11 @@ class Mybot(commands.Cog): if str(member.status) == "online": online_members.append(member) user = random.choice(online_members) - #user = member.mention - if user == self.bot.user: + user = user.mention + if user == self.bot.user.memtion: await ctx.channel.send("je tribuche par terre et je sais pas comment") else: - await ctx.channel.send("j'attrape %s et lui met une tarte!" % user.mention) + await ctx.channel.send("j'attrape %s et lui met une tarte!" % user) @commands.command(help="optionnal args : [livre] [character]") async def kaamelott(self, ctx, *args):