add sound command roulette

This commit is contained in:
BFlow 2020-04-21 12:22:46 +02:00
parent 21d235f0ac
commit 4035bf390f

View file

@ -259,12 +259,12 @@ class Mybot(commands.Cog):
await self.joke(ctx, "omawa_shindeiru.mp3") await self.joke(ctx, "omawa_shindeiru.mp3")
await member.edit(mute=True) await member.edit(mute=True)
with ctx.channel.typing(): with ctx.channel.typing():
await asyncio.sleep(0.5) await asyncio.sleep(1.7)
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") await self.joke(ctx, "hammer_and_dry.mp3")
with ctx.channel.typing(): with ctx.channel.typing():
await asyncio.sleep(0.5) await asyncio.sleep(1.7)
await ctx.channel.send("Gagné, tu ne seras pas mute!") await ctx.channel.send("Gagné, tu ne seras pas mute!")
return return
await asyncio.sleep(mute_time) await asyncio.sleep(mute_time)