roulette 1er essai

This commit is contained in:
BFlow 2020-04-17 16:24:43 +02:00
parent 682de524c1
commit 386c70f803

View file

@ -232,6 +232,23 @@ class Mybot(commands.Cog):
await member.edit(mute=False) await member.edit(mute=False)
await ctx.channel.send("Tu peux reparler %s!" % member.mention) await ctx.channel.send("Tu peux reparler %s!" % member.mention)
@commands.command(help="Appuie sur la detente PUSSY!")
async def roulette(self, ctx):
mute_time = 60
member = ctx.message.author
barillet = [False, False, True, False, False, False]
bullet = random.choice(barillet)
if bullet == True:
await member.edit(mute=True)
await ctx.channel.send("Perdu, tu es mute pendant 10 secondes!")
return
else:
await ctx.channel.send("Gagné, tu ne seras pas mute!")
return
await asyncio.sleep(mute_time)
await member.edit(False)
await ctx.channel.send("Tu peux reparler %s!" % member.mention)
@tasks.loop(seconds=1.5) @tasks.loop(seconds=1.5)
async def play_next(self): async def play_next(self):
if self.sounds: if self.sounds: