From 5216d611c3a04a99b271e9389f162c99cdf1ae0b Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Mon, 6 Jan 2025 10:01:44 -0500 Subject: [PATCH] feat(commands/voice/playing): add percentage --- commands/voice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/voice.py b/commands/voice.py index 57f004a..2d0e61d 100644 --- a/commands/voice.py +++ b/commands/voice.py @@ -225,7 +225,7 @@ async def playing(message): title=source.title, description=f"{'⏸️ ' if message.guild.voice_client.is_paused() else ''}" f"`[{'#'*int(progress * bar_length)}{'-'*int((1 - progress) * bar_length)}]`" - f"{youtubedl.format_duration(int(source.original.progress))} / {youtubedl.format_duration(source.duration)}", + f"{youtubedl.format_duration(int(source.original.progress))} / {youtubedl.format_duration(source.duration)} ({round(progress * 100)}%)", url=source.original_url, ) embed.add_field(name="Volume", value=f"{int(source.volume*100)}%")