diff --git a/Music-Bot.py b/Music-Bot.py index 64a0310..d211602 100644 --- a/Music-Bot.py +++ b/Music-Bot.py @@ -203,7 +203,7 @@ else: ctx.voice_client.play( player, after=lambda e: print(f"Player error: {e}") if e else None ) - while ctx.voice_client: + while ctx.voice_client is not None: await asyncio.sleep(1) await ctx.voice_client.disconnect() await ctx.respond(f"{success}Now playing: `{player.title}`\nRequested by {ctx.author.mention}")