From dc3b092c2a7656d24c9323163237cab6e6bb3a14 Mon Sep 17 00:00:00 2001 From: Florian SYLVAIN Date: Sun, 14 Mar 2021 00:02:48 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20-=20Improved=20the=20$isso?= =?UTF-8?q?u=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/ext/cmd_other.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/ext/cmd_other.py b/python/ext/cmd_other.py index 006984c..9ff56b0 100644 --- a/python/ext/cmd_other.py +++ b/python/ext/cmd_other.py @@ -27,8 +27,8 @@ class OtherCmds(commands.Cog, name='Other commands'): if voice_channel is not None: voice = await voice_channel.connect() voice.play(discord.FFmpegPCMAudio('../assets/issou.mp3')) - if voice.is_playing(): - await asyncio.sleep(1) + while voice.is_playing(): + await asyncio.sleep(0.5) await voice.disconnect() else: await ctx.send('You or the targeted person are not connected to any channel.')