roulette 1er essai
This commit is contained in:
parent
682de524c1
commit
386c70f803
1 changed files with 17 additions and 0 deletions
|
@ -232,6 +232,23 @@ class Mybot(commands.Cog):
|
|||
await member.edit(mute=False)
|
||||
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)
|
||||
async def play_next(self):
|
||||
if self.sounds:
|
||||
|
|
Loading…
Reference in a new issue