Commit Graph
496 Commits
Author SHA1 Message Date
Fantic 028e31af14 Update Fluxer URL in README.md 2026-11-15 05:30:11 +01:00
Fantic 7b217ae790 Update invite link for Remix in README.md 2026-11-15 05:28:45 +01:00
NoLogicAlan 43eb97d57c fix(lavalink): increase heartbeat interval and suppress transient reconnect error spam
- 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
2026-11-15 02:08:25 +03:00
NoLogicAlan 6936060ec8 fix(status): resolve audioNode incident on nodeConnect and add status card self-healing
- 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
2026-11-15 02:01:47 +03:00
NoLogicAlan 3815f131cf fix(dashboard): resolve platform disconnect during login and update oauth endpoints
- 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
2026-11-15 01:31:05 +03:00
NoLogicAlan 0c8349f44b fix(status): format disconnect reasons, demote incident publication logs, and guard pooled sockets
- 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
2026-11-15 00:54:25 +03:00
NoLogicAlan 5e39679f45 fix(player): downgrade search candidate failure logging and suppress benign telemetry
- 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
2026-11-15 00:42:35 +03:00
NoLogicAlan 5ac04535f3 fix(status-channel): add automatic retry on transient socket closures during card updates
- Detect transient socket errors (other side closed, ECONNRESET, UND_ERR_SOCKET)
- Add 2x retry backoff in _patchMessage and _postMessage in StatusChannelManager
- Suppress single-tick transient socket resets from triggering warning channel embeds
2026-11-15 00:26:33 +03:00
NoLogicAlan 755efa5afd fix(lastfm): suppress expected "Track not found" (error 6) warnings from error channel
- 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
2026-11-14 01:57:24 +03:00
NoLogicAlan c9d932067e refactor(core): migrate API and CDN endpoints from fluxer.app to fluxer.com 2026-11-14 01:14:52 +03:00
NoLogicAlan 21197e7f22 refactor(locale): replace server terminology with communities across all locales 2026-11-14 00:58:15 +03:00
NoLogicAlan f1b2e43f8a feat(player): persist and restore autoplay state across restarts
- 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
2026-11-13 02:08:28 +03:00
NoLogicAlan 84c597ec3c fix(ui): add automatic 429 rate-limit backoff and retries in MessageHandler
- 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
2026-11-13 01:49:50 +03:00
NoLogicAlan 954e7c6b73 fix(dashboard): import missing PermissionFlags and Utils in Dashboard.mjs 2026-11-12 03:15:27 +03:00
NoLogicAlan 0d084bf127 feat(redis): decouple Redis service, add high-speed search caching, and 24/7 session restoration
- 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
2026-11-12 02:44:45 +03:00
NoLogicAlan 9ddbcb682f fix(audio): remove redundant -live_start_index flag in ffmpeg fallback
- 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
2026-11-11 02:02:00 +03:00
NoLogicAlan c188aac903 feat(i18n): complete HelpCommand localization for de-DE, pt-BR, tr, ar-SA, and ckb 2026-11-11 00:49:55 +03:00
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
Tomo 03cc3c2606 feat(i18n): add Simplified Chinese (zh-CN) and Traditional Chinese (zh-TW) locales 2026-11-10 08:12:05 +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