Commit Graph
350 Commits
Author SHA1 Message Date
NoLogicAlan e51d89bd14 Merge pull request #25 from Atopona/main 2026-11-11 00:41:16 +03:00
NoLogicAlan 4bade0869d fix(ui/core): add transient network retries for MessageHandler and suppress upstream socket drop errors
- 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
2026-11-11 00:33:37 +03:00
Tomo a319257abc fix(help): integrate help command with native i18n system and fix alias suppression 2026-11-10 08:43:55 +08:00
NoLogicAlan 36139837ba feat(status): implement public status channel system with live telemetry, automated incident tracking, and multi-language support
- 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`.
2026-11-10 02:31:48 +03:00
NoLogicAlan e3dd7ad914 fix(audio): resolve HTTP 403 on radio streams and improve direct media decode fallback
- 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.
2026-11-09 01:19:00 +03:00
NoLogicAlan 3ea54939b9 ... 2026-11-08 01:31:17 +03:00
NoLogicAlan 6c826891eb fix(voice, 247): harden voice state routing, gateway recovery, and 24/7 rejoin resilience
- 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
2026-11-06 22:13:40 +03:00
NoLogicAlan cc07c35f2a fix(voice, music): resolve thundering herd rejoins, playback drop recovery, and telemetry warnings
- 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
2026-11-06 01:46:27 +03:00
NoLogicAlan 8b99bd01dc fix(logging): update logger calls to use player logger for transport errors and API issues 2026-11-06 00:57:49 +03:00
NoLogicAlan aa56d98809 fix(gateway, player): resolve zombie gateway hangs and playback race conditions
- 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
2026-11-05 04:06:54 +03:00
NoLogicAlan 36ad89b1d2 fix(gateway): resolve zombie connection hangs on gateway drops and reconnect opcodes
- 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
2026-11-05 02:24:23 +03:00
NoLogicAlan 1251d8a53f fix(search): prevent query timeouts on genre terms and de-escalate telemetry alerts
- 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
2026-11-04 03:44:54 +03:00
NoLogicAlan ed76a6ebfe fix(music): resolve autoplay candidate exhaustion and voice connection stalls
- 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
2026-11-04 03:19:55 +03:00
NoLogicAlan 7df4e0cd36 fix(audio): silence verbose ffmpeg progress dump on clean process close 2026-11-04 02:23:00 +03:00
NoLogicAlan 26aed399fc fix(gateway): implement gateway watchdog, socket close tracking, and self-healing reconnects (#12) 2026-11-04 01:30:33 +03:00
NoLogicAlan 08634adb88 fix(player): fix HLS live edge, silence stderr log warnings, and fix queue auto-advance 2026-11-04 01:04:45 +03:00
NoLogicAlan 357197016b ... 2026-11-02 03:25:00 +03:00
NoLogicAlan f939878028 ... 2026-11-02 03:18:56 +03:00
NoLogicAlan a5afb6651a ... 2026-11-02 03:13:25 +03:00
NoLogicAlan 37fe5146cb ... 2026-11-02 03:03:44 +03:00
NoLogicAlan f28b798084 ... 2026-11-02 02:59:39 +03:00
NoLogicAlan 71bd628549 .... 2026-11-02 02:52:02 +03:00
NoLogicAlan 69b158f7f6 ... 2026-11-02 02:45:33 +03:00
NoLogicAlan 975eeca389 ... 2026-11-02 02:36:06 +03:00
NoLogicAlan 36dcbd6687 ... 2026-11-02 02:26:24 +03:00
NoLogicAlan cc679f5735 ... 2026-11-02 02:00:45 +03:00
NoLogicAlan 65aa23049e ... 2026-11-02 01:20:33 +03:00
NoLogicAlan c419e9e7c6 fix(audio): support continuous playback of YouTube Live and HLS streams
- 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
2026-11-02 01:06:46 +03:00
NoLogicAlan 0ec41c9bb5 fix(audio): handle loadstream timeout and add trackstream/ffmpeg fallbacks
- 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
2026-11-01 01:47:30 +03:00
NoLogicAlan a0d6f32ea8 fix(ui,music): handle deleted message replies and safe null duration during restore
- 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
2026-10-30 00:30:37 +03:00
NoLogicAlan 7c5fb1e468 feat(music): support direct media playback from Fluxer attachments and uploaded files (#24)
- 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
2026-10-29 03:08:20 +03:00
NoLogicAlan 91e7812c30 fix(player): add ICY support to probe and suppress false-alarm radio metadata warnings
- 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
2026-10-28 02:56:30 +03:00
NoLogicAlan c007bb93f8 fix(lastfm): optimize getTotalScrobbles fast path and rate-limit background syncs
- 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
2026-10-28 02:38:56 +03:00
NoLogicAlan bf376c8861 fix(core): declare module-scoped _locale in ErrorChannel
- Fix ReferenceError on boot by declaring let _locale at module scope
- Resolves shard crash during initErrorChannel execution
2026-10-28 02:26:07 +03:00
NoLogicAlan 3b9620012f feat: modernize UI, overhaul ErrorChannel telemetry, and achieve 100% 6-locale parity
- 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.
2026-10-28 02:19:26 +03:00
NoLogicAlan c0c95610ac feat(player): add %skipto command, empty voice auto-pause, and server mute guard 2026-10-27 03:47:02 +03:00
NoLogicAlan 5dc286e364 feat(docs): update README with playback history and instant replay features
refactor(commands): remove unused imports from various command files
refactor(src): clean up imports in multiple source files for better organization (#21)
2026-10-27 03:11:37 +03:00
NoLogicAlan e33fbb2fdb feat(player): add %previous, %replay, livekit skip guard, and nodelink auto-reconnect (#11, #13, #18, #19, #23) 2026-10-27 02:58:26 +03:00
NoLogicAlan 53d0990ebe fix(core): reset textChannel reference on announcement permission errors
- Unset player.textChannel when encountering MISSING_PERMISSIONS (403)
- Prevents player from repeatedly attempting to announce in blocked channels
2026-10-27 00:18:13 +03:00
NoLogicAlan edcdd4ddef feat(ui): complete UI embed 2026-10-26 02:36:56 +03:00
NoLogicAlan e8171dce26 feat(ui): modernize bot commands, Last.fm suite, and system embeds
- Modernize audio controls (%volume, %volumedefault, %bassboost, %autoplay, %trackopt, %shuffle, %clear, %list, %pause, %resume)
- Upgrade Last.fm suite (%lastfm play directory, spotlight cards, music podiums, tags, and profile stats)
- Polish system & voice embeds (%vote supporter verification, %servers network directory, %forceleave, and 24/7 watchdog)
- Achieve 100% localization parity across all 6 locales (en, ar-SA, ckb, tr, de-DE, pt-BR) with zero missing keys
2026-10-26 02:25:02 +03:00
NoLogicAlan 885db461ce feat(embeds): upgrade settings, 24/7 watchdog, lastfm UI and fix footer requester mentions
- 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)
2026-10-26 00:41:05 +03:00
NoLogicAlan 63433816c4 feat(i18n): localize all newly upgraded command embeds across 6 languages
- Add complete translations for en, ar-SA, ckb, tr, de-DE, and pt-BR
- Localize author headers, fields, and footers for playnext, remove, move, and trackopt
- Localize audio mastering fields for normalize and volumedefault
- Localize Last.fm whoknows leaderboards and Crown Holder cards
- Localize help command inspector and voice channel picker embeds
- Ensure 0 missing keys and 100% translation coverage
2026-10-25 04:03:33 +03:00
NoLogicAlan 8689dee50a feat(ui): overhaul remaining embeds for help, queue ops, audio mastering & community
- 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
2026-10-25 03:54:02 +03:00
NoLogicAlan b7f20fcb02 feat(music): fully localize now-playing embeds, footers, and source platforms 2026-10-25 03:02:22 +03:00
NoLogicAlan 53e3a7e4de feat(ui): overhaul queue and playback embeds with brand color #e9196c and full locales
- 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)
2026-10-25 02:50:40 +03:00
NoLogicAlan af2c725b54 fix(audio/core): fix stream demuxer crashes, %clear range parsing, and ghost players
- 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
2026-10-25 02:07:24 +03:00
NoLogicAlan 618ecb1a0b fix(music): resolve ghost players on channel/guild delete and fix clear command NaN range 2026-10-24 04:00:25 +03:00
NoLogicAlan a780ec22c8 feat(stats): persist user and global track counts in mysql tables 2026-10-24 01:55:21 +03:00
NoLogicAlan 70f124294d fix(stats): set initial tracks played to 4814 and robust bidirectional redis sync 2026-10-24 01:46:03 +03:00