From 6887ebe0871f24d8000b4f0b4ea42f80eaf60eaf Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Mon, 6 Jan 2025 10:07:54 -0500 Subject: [PATCH] refactor: tweak some descriptions --- commands/voice.py | 6 +++--- youtubedl.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/voice.py b/commands/voice.py index 2d0e61d..6c81ee1 100644 --- a/commands/voice.py +++ b/commands/voice.py @@ -182,7 +182,7 @@ async def queue_or_play(message, edited=False): color=constants.EMBED_COLOR, ) if formatted_duration: - e.set_footer(text=f"{formatted_duration} long") + e.set_footer(text=f"{formatted_duration} in total") return e await disnake_paginator.ButtonPaginator( @@ -224,8 +224,8 @@ async def playing(message): color=constants.EMBED_COLOR, 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)} ({round(progress * 100)}%)", + f"`[{'#'*int(progress * bar_length)}{'-'*int((1 - progress) * bar_length)}]` " + 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)}%") diff --git a/youtubedl.py b/youtubedl.py index 689d37c..cd75e2b 100644 --- a/youtubedl.py +++ b/youtubedl.py @@ -82,7 +82,7 @@ class QueuedSong: return ( f"[`{self.player.title}`]({'<' if hide_preview else ''}{self.player.original_url}{'>' if hide_preview else ''})\n**duration:** {format_duration(self.player.duration) if self.player.duration else '[live]'}" + ( - f", **queuer:** <@{self.trigger_message.author.id}>" + f", **queued by:** <@{self.trigger_message.author.id}>" if show_queuer else "" )