Mais slap moi (patch commande slap)

This commit is contained in:
BFlow 2019-11-19 16:57:02 +01:00
parent 9681bb6067
commit 72dbc404a9

View file

@ -86,8 +86,8 @@ 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):
slap_multiple = [ slap_multiple = [
"%s prend un coup de pied au cul", "%s prend un coup de pied au cul",
"Descente du coude sur %s", "Descente du coude sur %s",
"%s est propulsé par dessus la TROISIEME CORDE!", "%s est propulsé par dessus la TROISIEME CORDE!",
] ]
if not user or not ctx.message.mentions: if not user or not ctx.message.mentions:
@ -98,6 +98,8 @@ class Mybot(commands.Cog):
online_members.append(member) online_members.append(member)
user = random.choice(online_members) user = random.choice(online_members)
user = user.mention user = user.mention
elif ctx.user.mentions:
user = ctx.message.mentions[0]
if user == self.bot.user.mention: if user == self.bot.user.mention:
await ctx.channel.send("je tribuche par terre et je sais pas comment") await ctx.channel.send("je tribuche par terre et je sais pas comment")
else: else: