fixed queue skip error, implemented more /commands.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user