add sound command roulette

This commit is contained in:
BFlow 2020-04-21 12:21:12 +02:00
parent 36f514b856
commit 0ea18049d9

View file

@ -254,6 +254,7 @@ class Mybot(commands.Cog):
member = ctx.message.author member = ctx.message.author
barillet = [False, False, True, False, False] barillet = [False, False, True, False, False]
bullet = random.choice(barillet) bullet = random.choice(barillet)
await self.joke(ctx, "spinning_and_closed.mp3")
if bullet == True: if bullet == True:
await self.joke(ctx, "omawa_shindeiru.mp3") await self.joke(ctx, "omawa_shindeiru.mp3")
await member.edit(mute=True) await member.edit(mute=True)
@ -261,6 +262,7 @@ class Mybot(commands.Cog):
await asyncio.sleep(0.5) await asyncio.sleep(0.5)
await ctx.channel.send("Perdu, tu es mute pendant 60 secondes!") await ctx.channel.send("Perdu, tu es mute pendant 60 secondes!")
else: else:
await self.joke(ctx, "hammer_and_dry.mp3")
with ctx.channel.typing(): with ctx.channel.typing():
await asyncio.sleep(0.5) await asyncio.sleep(0.5)
await ctx.channel.send("Gagné, tu ne seras pas mute!") await ctx.channel.send("Gagné, tu ne seras pas mute!")