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):