test de la fonction slap
This commit is contained in:
parent
c552943a41
commit
68093c7abe
1 changed files with 7 additions and 2 deletions
|
@ -84,8 +84,13 @@ class Mybot(commands.Cog):
|
|||
await ctx.channel.send("j'ai %s lignes dans mon stock" % nb_lines)
|
||||
|
||||
@commands.command(help='slap this ass')
|
||||
async def slap(self, ctx, user):
|
||||
await ctx.channel.send("j'attrape %s est lui met une tarte!" % user)
|
||||
async def slap(self, ctx, user=None):
|
||||
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]")
|
||||
async def kaamelott(self, ctx, *args):
|
||||
|
|
Loading…
Reference in a new issue