- Integrate QueuePaginator into commands/top.mjs for interactive browsing (⬅️ / ➡️)
- Support direct page jumping via slash option and text arguments (%top [timeframe] [page])
- Paginate tracks into 10 items per page up to 50 tracks with dynamic rank badges
- Increase track query limits in GuildStats.mjs across MySQL and in-memory caches
- create guild_track_stats and guild_song_counts tables with composite time/guild indexes
- wire MySQL shared promise pool and Redis manager to GuildStats in Bot.mjs
- implement atomic Redis counters and ZINCRBY sorted sets for real-time leaderboard queries
- add async SQL queries for %top timeframes (week, month, all) and %wrapped recap calculations\
- implement GuildStats manager for tracking playback history, listening hours, and user engagement
- wire asynchronous play recording into PlayerEventsMixin on track start
- add %top command with timeframe filtering (week, month, all) and top artist highlight
- add %wrapped command displaying total streamed hours, queued tracks, peak hour, and top DJ
- add inactivity warning event and embed prompt before autoleave in Player & PlayerLifecycleMixin
- implement out-of-band ICY/Icecast metadata poller in RadioMetadata to track live radio titles without stream corruption
- wire live radio title updates into nowPlaying and announceSong in DisplayMixin and PlaybackMixin
- Queue: add peek() to inspect the upcoming track while respecting loop modes
- PlaybackMixin: schedule pre-fetch 15s before the current track finishes
- PlaybackMixin: pre-resolve Lavalink tracks and NodeLink trackstream URLs in background
- Player: trigger pre-fetching on queue add events near track completion and clear timers on stop
- FluxerAudioBridge: consume cached direct stream URLs for 0ms track transition latency
- Configure 60s heartBeatInterval on Lavalink node to tolerate transient event loop delays
- Route expected ECONNREFUSED reconnect attempts to logger.lavalink when node is disconnected
- Demote deferred 24/7 channel boot resolution in GatewayHandler from warn to voice247
- Add telemetry suppression for routine reconnect and boot recovery warnings in ErrorChannel
- Listen for Lavalink nodeConnect event in Bot.mjs to resolve audioNode incidents on connection
- Check audio node connection status immediately after LavalinkManager.init()
- Add auto-resolution self-healing in StatusChannelManager if audio node or gateway is active
- Send immediate Redis presence announcement and ping upon bot connection
- Auto-recover Fluxer platform readiness in backend upon receiving active pings
- Update OAuth token and user fetch endpoints from api.fluxer.app to fluxer.com/api
- Update OAuth authorization and invite URLs to fluxer.com
- Safely format Lavalink disconnect reason objects in Bot.mjs to avoid [object Object]
- Demote StatusChannelManager incident publication log from warn to info
- Suppress incident publication messages from ErrorChannel telemetry forwarding
- Verify Redis bridge readiness in StatusChannelManager dashboard probe when no HTTP port is configured
- Prevent duplicate error listeners on pooled keep-alive sockets in HttpStreams
- Downgrade exploratory candidate query errors in SearchMixin._searchFreeText from logger.warn to logger.player
- Safely extract error description when Lavalink search rejects with non-standard error shapes
- Guard against null result.tracks in Player.search()
- Add ErrorChannel suppression for benign player search candidate misses
- Add isLastFmNotFound helper in lastfm constants
- Use logQueryWarning in TrackQueriesMixin, UserQueriesMixin, and ServerStatsMixin to handle uncataloged tracks gracefully
- Guard updateNowPlaying and scrobble from warning on missing Last.fm tracks
- Filter benign Last.fm 404 queries in ErrorChannel log forwarding
- Save autoplay flag, recent history, and last played track in session snapshots
- Guard against pruning active autoplay sessions with empty queues
- Dynamically re-attach queueEnd autoplay listener during session restoration
- Trigger recommendation engine automatically if recovered with empty queue
- Persist player snapshots immediately when toggling autoplay on or off
- Handle RATE_LIMITED / HTTP 429 in reply, replyEmbed, sendMessage, and sendEmbed
- Automatically wait for retryAfter backoff and retry up to 3 times before failing
- Prevent command crashes when Fluxer message endpoints experience temporary rate limits
- Add src/db/RedisManager.mjs to centralize Redis connection lifecycle and key namespacing
- Support top-level config.redis in src/core/Bot.mjs with fallback to dashboard.redis
- Implement query cache in src/music/LavalinkManager.mjs for instant (<1ms) audio search lookups
- Mirror player state checkpoints to Redis in src/db/PlayerStateStore.mjs for fast 24/7 recovery
- Add documented redis configuration block to config_example.json
- Remove explicit -live_start_index input argument from _playViaFfmpeg
- Rely on FFmpeg's built-in default (-3) for HLS broadcast edge playback
- Prevent FFmpeg from aborting with 'Option live_start_index not found' on non-HLS streams
- Add isTransientNetworkError detection in MessageHandler for UND_ERR_SOCKET, fetch failed, and 502-504 responses
- Wrap reply, replyEmbed, sendMessage, sendEmbed, and editEmbed in exponential-backoff retry loops with channel fallback
- Update CommandLoader to log transient network drops as warnings instead of forwarding false-positive system error telemetry
- StatusChannelManager Service:
• Implement dedicated public status channel manager with periodic self-updating live telemetry card.
• Report real-time Fluxer gateway latency, uptime, active music sessions, listener counts, guild footprint, and subsystem statuses.
• Add visual Unicode progress bars for RAM (process RSS vs. system total) and CPU utilization across CPU cores.
• Add dual-color incident lifecycle management:
- 🔴 Incident Outage embeds with start timestamp, severity level, investigating status, and optional role mentions.
- ✅ Incident Resolution embeds with automatic downtime duration calculation and stable verification.
• Wire automated incident triggers into Bot lifecycle (Lavalink node disconnect/reconnect, process shutdown) and GatewayHandler (gateway drops and ready/resumed reconnects).
- Owner Diagnostic Command:
• Add `statustest` owner-only command with subcommands:
- `refresh`: Force an immediate update and edit of the live status card.
- `incident <target> [reason]`: Simulate subsystem outage alerts.
- `resolve <target> [note]`: Simulate incident resolution with calculated downtime.
- Complete Multi-Language Localization:
• Add full translations for `statustest` and `statusChannel` across all 6 supported locales:
- English (`en.json`)
- German (`de-DE.json`)
- Portuguese (`pt-BR.json`)
- Turkish (`tr.json`)
- Arabic (`ar-SA.json`)
- Central Kurdish (`ckb.json`)
• Wire `StatusChannelManager` and `statustest` to dynamically resolve translated strings via `remix.locale.translate`.
- Update default User-Agent across SafeHttp, HttpStreams, FluxerAudioBridge, and Player to a modern Chrome browser string, preventing HTTP 403 blocks on Icecast/SomaFM streams.
- Guard SafeHttp probe in Route C with try/catch to gracefully fall through to in-process FFmpeg decode when direct HTTP streaming probes fail.
- Restrict YouTube origin and referer headers in FFmpeg to YouTube/Googlevideo domains only so external audio hosts and radio CDNs are not rejected.
- Prevent false error rejections on FFmpeg exit when audio has already been delivered to the voice connection.
- Improve error reporting in Route 3d so enabled allowLoadstream configurations report actual underlying decode errors instead of false toggle prompts.
- Normalize VOICE_STATE_UPDATE fields (snake_case and camelCase) and add fallback to playerMap for resolving disconnected channels
- Directly dispatch raw WebSocket VOICE_STATE_UPDATE packets to VoiceStateRouting to prevent missed disconnect events
- Clear RejoinBackoff cooldowns on gateway READY/RESUMED and suppress failure penalties during gateway downtime
- Reduce RejoinBackoff base cooldown from 120s to 30s for faster self-healing
- Defer 24/7 boot recovery and watchdog sweeps until gateway connection is confirmed active
- Add REST guild fetch and channel fallbacks in Watchdog247, GatewayHandler, and RejoinManager so uncached guilds never skip 24/7 channels
- Clean channel snowflake IDs on both sides in get247ChannelMode
- Stagger simultaneous 24/7 channel rejoins (+2.5s per pending channel) and defer rejoins when the gateway is not connected
- Add in-place voice reconnection recovery during track playback to prevent burning through queue songs on transient LiveKit disconnects
- Fix audio publication race on seek by removing redundant bridge stop and increasing unpublish timeout to 2,500ms
- Eliminate duplicate voice reconnect races in Player disconnect handler for 24/7 channels
- De-escalate routine background reconnect logs from logger.warn/error to logger.voice247/player to stop spurious Discord warning embeds
- Sanitize upstream Cloudflare/Fluxer 503 HTML error pages into single-line messages in ErrorChannel
- Gateway & Connection Recovery:
- Handle opcodes 7 (Reconnect) and 9 (InvalidSession) by terminating sockets and clearing session state for clean re-IDENTIFY
- Restrict gateway heartbeat updates strictly to genuine Dispatch (op 0) and Heartbeat ACK (op 11)
- Trigger proactive shard reconnect immediately on raw WebSocket close events
- Tighten gateway watchdog intervals and add a 5s hard-kill timeout on gracefulShutdown to prevent process deadlocks
- Allow child bot processes to control the Docker container healthcheck file
- Bind shard lifecycle events (shardDisconnect, shardResume, shardReady)
- Player & Audio Pipeline:
- Add play session generation guarding (_playSessionGen) in PlaybackMixin and Player._bridgeStop to prevent asynchronous race conditions and rapid queue skip-loops
- De-escalate Lavalink loadtracks resolution fallbacks from logger.warn to logger.player to avoid false-alarm telemetry embeds
- Extract detailed Lavalink error reasons in AudioBridge console logs
- Command Routing:
- Add guildId and guild getters on Message wrapper and expand CommandHandler guildId extraction
- Handle opcodes 7 (Reconnect) and 9 (InvalidSession) by terminating sockets and clearing session state for clean re-IDENTIFY
- Update gateway heartbeat timestamp exclusively on genuine Dispatch (op 0) and Heartbeat ACK (op 11)
- Trigger proactive shard reconnect immediately on raw WebSocket close events
- Tighten gateway watchdog intervals and add a hard-kill timeout on gracefulShutdown to prevent process hangs
- Allow child bot processes to control the Docker container health file
- Add guildId/guild getters on Message wrapper for robust command routing
- Execute search variants sequentially in _searchFreeText to prevent upstream NodeLink/YTM request timeouts
- Remove re-throw in play() so searches seamlessly fall back to ytsearch and scsearch on provider errors
- Add user-friendly timeout message instead of raw Node.js abort exceptions
- Downgrade search errors to logger.warn to prevent false-alarm 'System Error' embeds in log channels
- Expand autoplay candidate search pool to 20 tracks and increase mix pool TTL to 2 hours
- Support multi-stage recommendations using both seed and last-played track
- Add resilient fallback in pickAutoplayTrack to prevent playback from halting
- Prevent race condition by clearing _playingNext before queueEnd playNext()
- Auto-reconnect voice connection before track advancement if connection dropped
- Decode aac_hls/m3u8 streams returned by trackstream via in-process ffmpeg
- Correct isStream/isLive detection from Lavalink track info
- Clamp live stream duration to zero to prevent premature end-of-track triggers
- Display LIVE badge for live broadcast tracks
- Reduce loadstream connect timeout from 60s to 12s to fail fast on unresponsive nodes
- Add graceful fallback in Route B and Route 3c to trackstream and in-process ffmpeg
- Prevent unhandled loadstream timeout exceptions from crashing playback
- Fall back to channel send when replyingTo message was deleted (UNKNOWN_MESSAGE 404)
- Safely handle null duration in dashboard convertVideo and player embed during session restore
- Protect lastfm scrobbler and search mixins from null duration properties
- Add AttachmentUtils for detecting fluxerusercontent.com URLs and chat file attachments
- Support playing uploaded audio/video files directly via %play and %playnext
- Add Route 3d in-process ffmpeg decoding for container formats (.mp4, .mkv, .mov, etc.)
- Add native zero-re-encode passthrough for .opus, .webm, and .ogg attachments
- Add 📎 Fluxer Attachment source badges and embeds across all 6 locales
- Fixes#24
- Add -icy 1 and -analyzeduration flags to probe.mjs for Shoutcast/Icecast HTTP streams
- Silently fall back to station display without logging logger.warn when stream metadata is unavailable
- Read scrobble count sum directly from local database in getTotalScrobbles() so %stats renders instantly without timing out
- Run user playcount sync asynchronously in the background with gentle 200ms batch spacing to prevent Last.fm API rate-limiting
- Suppress false-alarm ErrorChannel warnings on transient background sync drops
- Include error cause details in apiCall fetch failures for easier network diagnostics
- Core & Telemetry:
* Overhaul ErrorChannel (config.errorLogChannel) to rich Pro Embeds with severity color coding (Error, Warn, Info).
* Add structured crash reports featuring syntax-highlighted stack traces, uptime, and RSS memory telemetry.
* Add log flood drop notifications and startup connection status announcement.
* Support dynamic self-hosted Fluxer API base resolution (config.apiBase / config['fluxer.js'].api).
* Wire ErrorChannel into the localization system with dynamic _t() translation and safe fallback.
- Localization & i18n:
* Expand all 6 locale files (en, ar-SA, ckb, tr, de-DE, pt-BR) to 1,112 keys each.
* Achieve 100% key parity and 0 variable mismatches across all supported languages.
* Localize all embed titles, author badges, footers, and system responses.
- Commands & Modern UI:
* Upgrade all commands (playback, queue, audio DSP, utility, lastfm, settings, owner) to the modern Pro UI embed design.
* Add previous, replay, and skipto queue navigation commands with history tracking.
* Replace raw unicode escapes with literal UTF-8 emojis.
* Maintain clean codebase standards (zero single-line comments introduced, commands/stats.mjs strictly untouched).
- Architecture & Voice:
* Enhance FluxerAudioBridge, VoiceStateRouting, and VoiceStateCache for reliable voice reconnects.
* Refactor centralized database pooling and player lifecycle mixins.
refactor(commands): remove unused imports from various command files
refactor(src): clean up imports in multiple source files for better organization (#21)
- Fix raw <@ID> mention syntax in player added-to-queue embed footers by resolving display username
- Restore all original 247Panel translation keys across all 6 locales and merge watchdog monitor keys
- Upgrade %settings get to modular categorized Server Control Dashboard
- Upgrade %247 panel to live voice watchdog and connection health monitor
- Upgrade %fm profile to Last.fm music identity card with user avatar and stats
- Upgrade %fm artistinfo to artist spotlight card with tags, bio, and plays matrix
- Upgrade %fm cover to high-resolution album artwork gallery frame
- Maintain 0 missing keys across all 6 locales (en, ar-SA, ckb, tr, de-DE, pt-BR)
- Upgrade %settings get to modular categorized Server Control Dashboard
- Upgrade %247 panel to live voice watchdog and connection health monitor
- Upgrade %fm profile to Last.fm music identity card with user avatar and stats
- Upgrade %fm artistinfo to artist spotlight card with tags, bio, and plays matrix
- Upgrade %fm cover to high-resolution album artwork gallery frame
- Add complete translations across all 6 locales (0 missing keys)
- Upgrade %help overview with feature highlights and %help <command> with rich embed inspector
- Fix %playnext embed wrapping bug causing [object Object] and add Playing Next badge
- Upgrade %trackopt set/get/play with visual cut-window timeline bars
- Upgrade %remove and %move with queue change receipt cards
- Upgrade %normalize and %volumedefault with EBU R128 mastering and volume slider bars
- Upgrade %whoknows with ranked Crown Holder cards and podium medals
- Upgrade %invite and %support with rich in-embed markdown links (no button dependencies)
- Upgrade voice join and %vote with branded status embeds
- Modernize %seek with track artwork thumbnail and visual progress bar
- Enhance %filter with real-time DSP active status badges and card spacing
- Add detailed frequency band indicators to %bassboost, %speed, and %pitch
- Redesign %thumbnail with framed artwork and song metadata
- Transform %leave into a structured voice session termination card
- Polish %ping with categorized latency health metrics (REST, Gateway, Audio Node)
- Leave %stats untouched as intended
- Complete translations across all 6 locales (en, ar-SA, ckb, tr, de-DE, pt-BR)
- Redesign %skip with skipped track thumbnail, elapsed time, and up-next preview
- Upgrade %pause and %resume with rich track cards and timestamp badges
- Add visual volume meter gauge (0-150%) to %volume
- Modernize %loop with single-track and queue-loop status badges
- Enhance %autoplay with status pills and recommendation engine details
- Polish %shuffle and %clear with queue reorder summaries and track counts
- Full translations added across all 6 locales (en, ar-SA, ckb, tr, de-DE, pt-BR)
- Transform %queue / %list with Now Playing thumbnail, ranked item cards, and localized footer
- Enhance %search with provider icons, artist metadata, and localized cancel options
- Polish %lyrics with album thumbnail, Synced badge, and structured header
- Redesign %radio directory with command pills and localized pagination controls
- Standardize brand color 0xe9196c across all player commands
- Add complete translations across all 6 locales (en, ar-SA, ckb, tr, de-DE, pt-BR)
- Redesign %np, Added-to-Queue, and Auto-Announcement embeds with rich 3-column layouts
- Standardize all embeds to brand color #e9196c
- Transform Queue-Ended announcement with quick-action suggestions (%radio, %autoplay)
- Unify message forwarder in commands/play to support rich EmbedBuilder payloads
- Add native localization keys across all 6 supported locales (en, ar-SA, tr, de-DE, pt-BR, ckb)
- audio: prevent EBML demuxer crash by retaining paused HTTP stream mode
- audio: remux Ogg containers to WebM and pass direct WebM on zero-seek
- audio: suppress uncaught demuxer stream errors in process exception handler
- commands: fix NaN bug in %clear range deletion and sanitize option parsing
- voice: eliminate ghost players on guild/channel delete and voice disconnects
- stats: optimize MySQL playback persistence and track counters
- Safely resolve guildId in CommandHandler replyHandler and prefix formatters
- Catch MISSING_PERMISSIONS and COMMUNICATION_DISABLED (403) across MessageHandler send/reply/edit
- Prevent join failure in PlayerLifecycleMixin when text channel messages are denied
- Suppress sending error-replies into channels where the bot lacks send permissions
- Track cumulative played songs persistently via TrackStats and storage/stats.json
- Multi-shard atomic sync via Redis INCR
- Enlarge category headers with markdown H3 in description
- Add translations across all 6 locales