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

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