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')
|
||||
async def slap(self, ctx, user=None):
|
||||
member=None
|
||||
if not user:
|
||||
online_members = []
|
||||
members = ctx.guild.members
|
||||
for member in members:
|
||||
if str(member.status) == "online":
|
||||
online_members.append(member)
|
||||
member = random.choice(online_members)
|
||||
user = member.mention
|
||||
if member == self.bot.user:
|
||||
user = random.choice(online_members)
|
||||
#user = member.mention
|
||||
if user == self.bot.user:
|
||||
await ctx.channel.send("je tribuche par terre et je sais pas comment")
|
||||
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]")
|
||||
async def kaamelott(self, ctx, *args):
|
||||
|
|
Loading…
Reference in a new issue