choix d'user dans la fonction slap
This commit is contained in:
parent
80321e8128
commit
111b96c5db
1 changed files with 3 additions and 4 deletions
|
@ -91,10 +91,9 @@ class Mybot(commands.Cog):
|
|||
for member in members:
|
||||
if str(member.status) == "online":
|
||||
online_members.append(member)
|
||||
|
||||
await ctx.channel.send('%s' % online_members)
|
||||
|
||||
#await ctx.channel.send("j'attrape %s est lui met une tarte!" % user)
|
||||
member = random.choice(online_members)
|
||||
user = member.mention
|
||||
await ctx.channel.send("j'attrape %s est lui met une tarte!" % user)
|
||||
|
||||
@commands.command(help="optionnal args : [livre] [character]")
|
||||
async def kaamelott(self, ctx, *args):
|
||||
|
|
Loading…
Reference in a new issue