fixed queue skip error, implemented more /commands.

This commit is contained in:
2025-11-27 20:24:51 +00:00
parent a36977b000
commit 7f8f77fb76
4 changed files with 420 additions and 26 deletions

View File

@@ -211,12 +211,14 @@ async def display_server_queue(ctx: Context, songs, n):
loop_emoji = loop_emojis.get(loop_mode, '')
effect_emoji = queue.get_effect_emoji(effect)
# Progress bar (━ for filled, ─ for empty)
# Progress bar - using Unicode block characters for smooth look
progress_bar = ""
if duration > 0:
bar_length = 15
bar_length = 20 # Increased from 15 for smoother display
filled = int((percentage / 100) * bar_length)
progress_bar = f"\n{'' * filled}{'' * (bar_length - filled)} `{format_time(elapsed)} / {format_time(duration)}`"
# Use block characters: █ for filled, ░ for empty
progress_bar = f"\n{'' * filled}{'' * (bar_length - filled)} `{format_time(elapsed)} / {format_time(duration)}`"
# Now playing section
now_playing = f"### 🔊 Now Playing\n**{current_song}** {loop_emoji}{progress_bar}\n"