🎵 Update – Prefix System, Player Redesign & YouTube Mix Fixes
✨ Highlights 🆕 New Slash Command: /setprefix
You can now change your server’s message-command prefix (default: !).
All classic message commands dynamically follow the configured prefix
help / commands automatically display the correct active prefix
Fully integrated into the server configuration
👋 Improved Welcome Flow
Displays the currently active prefix
Includes a quick setup option to instantly change the prefix
🎨 Web Panel Player Redesigned
Larger video / cover display area
Fully responsive layout
No more panel shifting or compression
Cleaner and more modern overall appearance
🔧 YouTube Mix Handling – Fully Reworked ✅ Improved Mix Detection
isYouTubeMix() no longer falsely detects a Mix when a normal video URL is used:
/watch?v=...
Even if YouTube automatically appends Mix-related parameters like:
list=RD...
➡️ This prevents single videos from being incorrectly treated as massive auto-generated playlists.
🆕 New Helper Function: sanitizeYouTubeSingleVideoUrl()
If a URL contains:
/watch?v= + list=RD...
YouTube "Radio" / Mix parameters
The bot automatically sanitizes it to:
https://www.youtube.com/watch?v=<videoId>
This ensures the bot loads only the intended single video instead of a hidden or auto-generated Mix playlist.
🎵 Updated !play Logic
The !play command now:
Processes the raw input (trackInputRaw)
Applies the sanitized version (trackInput)
✅ Result
Correct video detection
No accidental loading of large Mix playlists
More predictable and stable queue behavior