choix d'user dans la fonction slap

This commit is contained in:
BFlow 2019-11-17 19:46:00 +01:00
parent 80321e8128
commit 111b96c5db

View file

@ -91,10 +91,9 @@ class Mybot(commands.Cog):
for member in members: for member in members:
if str(member.status) == "online": if str(member.status) == "online":
online_members.append(member) online_members.append(member)
member = random.choice(online_members)
await ctx.channel.send('%s' % online_members) user = member.mention
await ctx.channel.send("j'attrape %s est lui met une tarte!" % user)
#await ctx.channel.send("j'attrape %s est 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):