From c3eb9a9d7303b8a6683a76f2f043b8702028e201 Mon Sep 17 00:00:00 2001 From: Lukas Blacha Date: Wed, 8 Feb 2023 19:01:07 +0100 Subject: [PATCH] Fixed Typing... --- Music-Bot.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Music-Bot.py b/Music-Bot.py index 8ffcf58..e25474a 100644 --- a/Music-Bot.py +++ b/Music-Bot.py @@ -194,10 +194,10 @@ else: raise commands.CommandError(err) finally: await ctx.send(f"{success}Now playing: `{player.title}`\nRequested by {ctx.author.mention}") - while ctx.voice_client.is_playing(): - await asyncio.sleep(3) - else: - await ctx.voice_client.disconnect() + while ctx.voice_client.is_playing(): + await asyncio.sleep(3) + else: + await ctx.voice_client.disconnect() @bot.slash_command(name="stream", description="Streams a song from YouTube [Without preloading]") @@ -254,10 +254,10 @@ else: raise commands.CommandError(err) finally: await ctx.send(f"{success}Now playing: `{player.title}`\nRequested by {ctx.author.mention}") - while ctx.voice_client.is_playing(): - await asyncio.sleep(3) - else: - await ctx.voice_client.disconnect() + while ctx.voice_client.is_playing(): + await asyncio.sleep(3) + else: + await ctx.voice_client.disconnect() @play.before_invoke