auto mutilation

This commit is contained in:
BFlow 2019-11-17 20:00:47 +01:00
parent 111b96c5db
commit 33d44c2395

View file

@ -85,6 +85,7 @@ class Mybot(commands.Cog):
@commands.command(help='slap this ass') @commands.command(help='slap this ass')
async def slap(self, ctx, user=None): async def slap(self, ctx, user=None):
member=None
if not user: if not user:
online_members = [] online_members = []
members = ctx.guild.members members = ctx.guild.members
@ -93,7 +94,10 @@ class Mybot(commands.Cog):
online_members.append(member) online_members.append(member)
member = random.choice(online_members) member = random.choice(online_members)
user = member.mention 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]") @commands.command(help="optionnal args : [livre] [character]")
async def kaamelott(self, ctx, *args): async def kaamelott(self, ctx, *args):