fixe auto mutilation
This commit is contained in:
parent
33d44c2395
commit
957708785f
1 changed files with 4 additions and 5 deletions
|
@ -85,19 +85,18 @@ class Mybot(commands.Cog):
|
||||||
|
|
||||||
@commands.command(help='slap this ass')
|
@commands.command(help='slap this ass')
|
||||||
async def slap(self, ctx, user=None):
|
async def slap(self, ctx, user=None):
|
||||||
member=None
|
|
||||||
if not user:
|
if not user:
|
||||||
online_members = []
|
online_members = []
|
||||||
members = ctx.guild.members
|
members = ctx.guild.members
|
||||||
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)
|
user = random.choice(online_members)
|
||||||
user = member.mention
|
#user = member.mention
|
||||||
if member == self.bot.user:
|
if user == self.bot.user:
|
||||||
await ctx.channel.send("je tribuche par terre et je sais pas comment")
|
await ctx.channel.send("je tribuche par terre et je sais pas comment")
|
||||||
else:
|
else:
|
||||||
await ctx.channel.send("j'attrape %s et lui met une tarte!" % user)
|
await ctx.channel.send("j'attrape %s et lui met une tarte!" % user.mention)
|
||||||
|
|
||||||
@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