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)
|
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):
|
||||||
|
|
Loading…
Reference in a new issue