test de la fonction slap

This commit is contained in:
BFlow 2019-11-17 18:47:20 +01:00
parent c552943a41
commit 68093c7abe

View file

@ -84,8 +84,13 @@ class Mybot(commands.Cog):
await ctx.channel.send("j'ai %s lignes dans mon stock" % nb_lines) await ctx.channel.send("j'ai %s lignes dans mon stock" % nb_lines)
@commands.command(help='slap this ass') @commands.command(help='slap this ass')
async def slap(self, ctx, user): async def slap(self, ctx, user=None):
await ctx.channel.send("j'attrape %s est lui met une tarte!" % user) if not user:
members = ctx.guild.members
for member in members:
await ctx.channel.send('%s : %s' % (member.nick,member.Status))
#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):