diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 673a814..e3c2fce 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -85,6 +85,7 @@ class Mybot(commands.Cog): @commands.command(help='slap this ass') async def slap(self, ctx, user=None): + member=None if not user: online_members = [] members = ctx.guild.members @@ -93,7 +94,10 @@ class Mybot(commands.Cog): online_members.append(member) member = random.choice(online_members) user = member.mention - await ctx.channel.send("j'attrape %s est lui met une tarte!" % user) + if member == self.bot.user: + 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) @commands.command(help="optionnal args : [livre] [character]") async def kaamelott(self, ctx, *args):