diff --git a/README.md b/README.md index f4d04d6..3da0df5 100644 --- a/README.md +++ b/README.md @@ -7,659 +7,238 @@

Remix

- A premium, high-quality, and open-source music bot for Fluxer. + A modern, high-performance, and open-source music bot for Fluxer.

- Invite to Server · - Report a Bug · - Request a Feature + Invite Remix · + Join Support Server · + Report an Issue

License Node.js - ESM - lavalink-client - @fluxerjs/voice - MySQL + Audio Engine + Database + Localization Maintained

--- -## Table of Contents +## 🌟 Overview -- [About The Project](#-about-the-project) -- [How Audio Playback Works](#-how-audio-playback-works) -- [Features](#-features) -- [Getting Started (Users)](#-getting-started-users) -- [Commands](#-commands) -- [Self-Hosting](#-self-hosting-the-bot) - - [Prerequisites](#prerequisites) - - [Installation](#installation) - - [Database Setup](#-database-setup) - - [Dashboard Setup (Optional)](#-dashboard-setup-optional) - - [Configuration Reference](#-configuration-reference) -- [Project Architecture](#-project-architecture) -- [The Layered Codebase](#-the-layered-codebase) -- [Localization](#-localization) -- [Scripts](#-npm-scripts) -- [Credits](#-credits--license) +**Remix** is a feature-rich, self-hostable music bot built specifically for [Fluxer](https://fluxer.app). Built on [`@fluxerjs/core`](https://github.com/fluxerjs/core) and [`@fluxerjs/voice`](https://github.com/fluxerjs/voice), it streams ultra-low-latency Opus audio directly to LiveKit voice channels using an optimized [NodeLink](https://github.com/PerformanC/NodeLink) backend. + +We believe essential music features should never be locked behind a paywall β€” **every feature on Remix is 100% free and open-source.** --- -## About The Project +## ⚑ Highlights & Features -Remix is a free and open-source music bot for [Fluxer](https://fluxer.app), built with [`@fluxerjs/core`](https://github.com/fluxerjs/core) for the Fluxer API and [`@fluxerjs/voice`](https://github.com/fluxerjs/voice) for LiveKit voice connections. Track search and streaming are handled by [`lavalink-client`](https://www.npmjs.com/package/lavalink-client) talking to a [NodeLink](https://github.com/PerformanC/NodeLink) audio node (Lavalink-compatible), and the bot publishes Opus audio to LiveKit as a participant β€” with a custom WebM/Opus pipeline (zero-re-encode passthrough and remux where possible). - -We believe music features shouldn't be locked behind paywalls β€” **all commands on Remix are 100% free and always will be.** - -### Fluxer.js 3.0 - -Remix runs on **`@fluxerjs/core` / `@fluxerjs/util` / `@fluxerjs/voice` 3.0.0** plus **`@fluxerjs/sharding` 3.0.0** (see the [changelog](https://fluxer.js.org/changelog/)). The v3 DX overhaul required only five code-level changes in this codebase β€” everything else (event names, gateway opcodes, permission flags, the voice/LiveKit API, `EmbedBuilder`, message `reply`/`edit`/`react`, the raw `VOICE_STATE_UPDATE` / `VoiceStatesSync` payloads this bot tracks) is unchanged between 2.2 and 3.0: - -1. `package.json` β€” the three `@fluxerjs/*` ranges moved from `^2.2.0` to `^3.0.0` (a `^2.2.0` range will not install 3.0). -2. `src/core/Bot.mjs` β€” the `Client` `presence` option now uses the normalized v3 shape (`customStatus`/`emojiName`/`emojiId`) instead of the 2.2 wire format (`custom_status`); the deprecated no-op `suppressIntentWarning` option was dropped. -3. `src/voice/gateway/GatewayHandler.mjs` β€” the presence-rotation sender wraps its `client.ws` access in a try/catch, because 3.0 exposes `client.ws` as a getter that throws when the gateway is not connected (2.2 exposed a plain optional). The rotation payload itself stays in wire format because it sends opcode 3 straight to the shard. -4. `src/ui/MessageHandler.mjs` β€” `joinChannel()` checks `channel.isGuild?.()` first (the new ChannelType-based guard) and keeps the legacy `"guildId" in channel` check as a fallback for stub objects. -5. `src/utils/ShardingUtils.mjs` (new) β€” 3.0 removed the WebSocketManager's `shards` Map property in favour of `getShards()`/`getShard()` methods, which had silently disabled the bot's raw-socket listeners (they no-op'd behind their existing guards). All five readers β€” Bot.mjs's WS error handlers, GatewayHandler's raw listener and presence sender, LavalinkManager's payload routing and raw listener β€” now go through version-agnostic helpers that also make them shard-aware (see below). - -Two 3.0 library-level notes that need no code change here: the WS manager no longer emits `shardCreate` (the bot's 5-second handler re-arm loop covers re-attachment), and `Guild.description` was removed from the core structures (the dashboard serializer already null-guards it, so server descriptions simply render empty). Passing `intents` or `suppressIntentWarning` inside `config["fluxer.js"]` is still accepted β€” both are documented deprecated no-ops in 3.0. - -### Sharding (optional) - -`@fluxerjs/sharding` 3.0.0 (beta) is wired in as an **opt-in** layer β€” the default single-process boot (`npm start` / `node index.mjs`) is byte-for-byte unchanged, and none of the sharding code paths activate unless the process was actually forked by the manager (it sets `FLUXER_SHARD_IDS` *and* provides an IPC channel; manually exporting the variables does nothing). - -- **Supervisor:** `node shard.mjs` (or `npm run shard`) forks one child per shard slice, each running the ordinary `index.mjs` boot. The manager owns the shared per-IP IDENTIFY budget so children can never collectively exceed the gateway limit, respawns dead children, and exposes `broadcastEval` / `fetchClientValues` / `respawnAll`. -- **Child side:** `src/core/Bot.mjs` attaches the library's `ShardClientUtil` before `login()` (it applies the shard slice to the client options) and calls `notifyReady()` after login so the supervisor's spawn promise resolves. A failed attach under a manager is fatal by design β€” without its slice the child would identify as shard 0 like every other child and thrash the gateway sessions. -- **Guildβ†’shard routing:** opcode-4 voice payloads from LavalinkManager now target `shardIdForGuildId(guildId)` instead of hardcoded shard 0, presence updates fan out to every gateway shard in the process, and raw-socket listeners attach to *all* local shard sockets. Unsharded, every one of these degrades to exactly the previous shard-0 behavior. - -Configuration (config.json, all optional β€” defaults shown): - -```json -"sharding": { "totalShards": 1, "shardsPerProcess": 1, "respawn": true, - "spawnTimeout": 30000, "spawnDelay": 5000 } -``` - -`FLUXER_TOTAL_SHARDS` / `FLUXER_SHARDS_PER_PROCESS` env vars override the config (Docker Compose runs `node shard.mjs` by default). Prefer an explicit `totalShards` β€” Fluxer's `/gateway/bot` always reports `shards: 1`, so there is no reliable `"auto"`. - -Beta caveats worth knowing: DMs and guild-less events only reach shard 0 (library limitation); each child opens its own MySQL/Redis/Lavalink connections and its own dashboard RPC subscription, so the dashboard is currently single-process-first β€” guilds on other shards won't be reachable from it, and concurrent `storage/stats.json` writes across children can race. The stock `node index.mjs` deployment has none of these issues. +* 🎡 **Low-Latency Zero-Re-Encode Audio** β€” Direct WebM/Opus streaming pipeline published over LiveKit with instant start times and zero CPU re-encoding overhead. +* πŸ”Ž **Universal Music Search** β€” Seamless search and playback across YouTube, YouTube Music, Spotify, SoundCloud, Deezer, Apple Music, Tidal, Bandcamp, Bilibili, plus direct HTTP/HTTPS and radio streams. +* πŸ”„ **24/7 Voice Persistence** β€” Keeps the bot in designated voice channels around the clock with exponential backoff recovery, boot rejoin, and state restore across restarts. +* βͺ **Playback History & `%previous`** β€” Dedicated 20-track circular playback history ring buffer to step backward (`%previous`, `%undo`) without lost tracks. +* πŸ” **Instant Track Replay** β€” Restart the current song from 0:00 with `%replay` (or `%restart`) without re-fetching network streams. +* πŸŽ›οΈ **Audio Filters & DSP Studio** β€” Real-time audio transformations: Bassboost (low/medium/hard), Nightcore, Vaporwave, 8D audio, and fine-grained `%speed` & `%pitch` tuning. +* πŸ“Š **Loudness Normalization** β€” Built-in EBU R128 / ReplayGain leveling (`%normalize`) to eliminate volume jumps between quiet acoustic songs and loud EDM tracks. +* πŸ“ˆ **Comprehensive Last.fm Suite** β€” Real-time scrobbling, loved tracks synchronization, artist crowns, server leaderboards, profile cards, and automated similar-track autoplay. +* πŸ“‘ **Massive Playlist Ingestion** β€” Asynchronous chunked ingestion for large Spotify and SoundCloud playlists (>100 tracks) with instant playback start on song #1. +* 🌐 **Full 6-Language Localization** β€” English, Arabic, Kurdish (Sorani), Turkish, German, and Brazilian Portuguese. +* πŸ›‘οΈ **Hardened Security & Reliability** β€” Built-in SSRF protection with DNS-rebinding guards (`SafeHttp`) and automated credential redaction (`[REDACTED]`) in owner diagnostics. --- -## How Audio Playback Works +## πŸš€ Getting Started -Understanding the pipeline helps when debugging or contributing: - -``` -%play β†’ LavalinkManager.search() ──► NodeLink (track resolution only) - β†’ Player queue β†’ FluxerAudioBridge.play(voiceConnection, track) - β”œβ”€ /v4/trackstream β†’ direct WebM/Opus passthrough (no re-encode) - β”œβ”€ /v4/loadstream β†’ magic-byte sniffing: - β”‚ β€’ WebM (1A45DFA3) β†’ passthrough to LiveKit - β”‚ β€’ OggS β†’ OggDemuxer β†’ WebMOpusMuxer (remux, no re-encode) - β”‚ β€’ raw PCM β†’ OpusEncoder (opusscript) - β”‚ β†’ WebMOpusMuxer β†’ LiveKit - └─ conn.play() β†’ @fluxerjs/voice LiveKit connection (bot publishes audio - as a LiveKit participant) -``` - -A few things worth knowing: - -- **No Lavalink players are created.** NodeLink is used for search and its REST stream/lyrics endpoints (`/v4/loadstream`, `/v4/trackstream`, `/v4/loadlyrics`); playback itself is pure LiveKit publishing. -- **Seek / pause / resume** work by stopping the current stream and re-requesting it at an offset from NodeLink. -- **Filters** (bassboost, nightcore, etc.) are applied server-side by NodeLink, so they take effect on the next track that starts. -- **Volume** is applied client-side by the LiveKit connection (1–200). -- Radio metadata (StreamTitle) is read with **ffprobe** (`ffprobe-static`). -- **Bilibili playback (fully anonymous β€” no cookies)** β€” `%play https://www.bilibili.com/video/BV…` (b23.tv short links and `?p=` parts included) resolves the video through Bilibili's web API and feeds it to the node through a signed localhost proxy that attaches the Referer/User-Agent headers Bilibili's CDN requires. Multi-part videos queue like a playlist. Requests use Bilibili's WBI-signed endpoints (derived anonymously from the nav payload), which survive the HTTP 412 risk-control blocks that reject plain unsigned API calls on many hosting IPs; on any WBI failure the bot automatically retries through the legacy unsigned endpoints. Playurl calls carry the anonymous `try_look=1` flag and prefer the best DASH audio stream (~130–170 kbps AAC) β€” real DASH audio works without login β€” falling back to the html5 progressive mp4 for videos without DASH audio, and multi-segment progressive streams are served back-to-back through the proxy's concatenating mode with Range/seek support. The bot generates and manages its Bilibili device fingerprint (buvid3/buvid4/b_nut) automatically and retries once with a fresh fingerprint when risk control interferes. The proxy binds `127.0.0.1` by default β€” set `bilibili.advertiseHost` (and `bind: "0.0.0.0"`) when your node runs on another machine. +### Invite to Your Server +1. Click here to **[Invite Remix](https://web.fluxer.app/oauth2/authorize?client_id=1478084469635211806&scope=bot&permissions=3206208)** to your Fluxer server. +2. Join any voice channel. +3. Type `%play ` to start listening! --- -## Features +## πŸ“– Command Reference -- **High-quality audio playback** β€” NodeLink streaming with a zero-re-encode WebM/Opus pipeline, published over LiveKit -- **Multi-source search** β€” YouTube, YT Music, Spotify, SoundCloud, Deezer, Apple Music, Tidal, Bandcamp and 40+ more provider prefixes, plus direct URLs and Bilibili videos -- **24/7 mode** β€” keep the bot in a voice channel permanently, with staggered auto-rejoin on boot and rejoin retries on connection loss -- **Interactive emoji player** β€” reaction-based control panel with live progress, lyrics viewer, and a filter submenu -- **Lyrics** β€” synced lyrics via NodeLink -- **Radio stations** β€” built-in support for custom radio streams with keyword-based search -- **Last.fm integration** β€” account linking, scrobbling, now-playing, play loved/top/recent/albums, whoknows, crowns, compare, leaderboards, and profiles -- **Autoplay** β€” automatically play similar tracks when the queue ends (powered by Last.fm) -- **Playback history & undo** β€” circular playback history buffer (up to 20 tracks) allowing listeners to step backwards in the queue (`%previous`, `%prev`, `%undo`) without lost tracks -- **Instant song replay** β€” restart the currently playing track from 0:00 with zero stream lag (`%replay`, `%restart`) -- **Seek** β€” jump to a specific position in the current track -- **Track options** β€” set custom start/end times per track, great for album compilations and hidden tracks -- **Queue move** β€” reorder tracks by moving them to a different position -- **Audio filters & DSP effects** β€” real-time equalizer bassboost (low/medium/hard), nightcore, vaporwave, 8D audio, and fine-grained `%speed` & `%pitch` controls -- **Dynamic volume normalization** β€” ReplayGain & EBU R128 loudness leveling across YouTube, Spotify, and SoundCloud (`%normalize`) -- **Large playlist streaming** β€” background chunked ingestion for massive Spotify & SoundCloud playlists (>100 tracks) with instant playback start -- **Server settings** β€” per-guild configuration (prefix, volume, locale, 24/7 channels, …) stored in MySQL -- **Dashboard backend** β€” optional Redis-RPC backend that an external web frontend uses to monitor players and control playback remotely -- **Multi-language support** β€” English, Arabic, German, Kurdish (Sorani), Brazilian Portuguese, and Turkish -- **Configurable logging** β€” granular control over which log categories appear in the console -- **Graceful shutdown & Queue Persistence** β€” flushes active player queues and playback positions into MySQL (`player_state`) before cleanly destroying players and closing MySQL/Redis/NodeLink sessions on SIGINT/SIGTERM/SIGUSR2 -- **Module system** β€” pluggable module architecture for extending bot functionality (`storage/modules.json`) +The default prefix is `%`. Server administrators can customize the prefix at any time using `%settings set prefix `. ---- +### 🎡 Playback & Controls -## Getting Started (Users) - -Want to use Remix in your server right away? - -1. **[Invite Remix](https://web.fluxer.app/oauth2/authorize?client_id=1478084469635211806&scope=bot&permissions=3206208)** to your Fluxer server. -2. Join a voice channel. -3. Use the `%help` command to see everything the bot can do, or jump straight in with `%play `. - ---- - -## Commands - -Below is the complete list of Remix's commands. The default prefix is `%`. - -### Music - -| Command | Description | Usage | Aliases | +| Command | Aliases | Description | Example | | :--- | :--- | :--- | :--- | -| `play` | Play a song from a URL, search query, or playlist | `%play Never Gonna Give You Up` / `%play lastfm:loved` | `p` | -| `playnext` | Add a song/playlist to the *top* of the queue | `%playnext query: text` | `pn` | -| `pause` | Pause the current playback | `%pause` | | -| `resume` | Resume the paused playback | `%resume` | | -| `skip` | Skip the currently playing song | `%skip` | `s` | -| `previous` | Play the previous track from recent playback history | `%previous` / `%prev` | `prev`, `back`, `undo` | -| `replay` | Restart the current song from the beginning (0:00) | `%replay` | `restart` | -| `np` | Show the currently playing song | `%np` | `current`, `nowplaying` | -| `list` | View the upcoming queue | `%list` | `queue`, `q` | -| `loop` | Toggle loop mode (song or queue) | `%loop queue` | | -| `shuffle` | Randomize the queue order | `%shuffle` | | -| `remove` | Remove a specific song by its queue index | `%remove 3` | | -| `clear` | Clear the entire queue | `%clear` | `c` | -| `volume` | Change the playback volume (1–200) | `%volume 50` | `v`, `vol` | -| `volumedefault` | Set the default volume for the server | `%volumedefault 80` | `vd` | -| `search` | Search for a track and pick from results | `%search query` | | -| `lyrics` | Display synced lyrics from NodeLink | `%lyrics` | `lyric`, `ly` | -| `thumbnail` | Get the thumbnail of the current track | `%thumbnail` | `thumb` | -| `radio` | Play a built-in or custom radio station | `%radio` | `r` | -| `filter` | Interactive audio filter picker (bass, speed, nightcore, 8D, etc.) | `%filter` | `filters`, `fx`, `effect` | -| `bassboost` | Apply a low, medium, or hard bass boost equalizer | `%bassboost hard` | `bb`, `bass` | -| `speed` | Adjust playback speed multiplier (0.5×–2.0Γ—) in real time | `%speed 1.25` | `rate`, `tempo` | -| `pitch` | Adjust audio pitch multiplier (0.5×–2.0Γ—) in real time | `%pitch 1.2` | `semitone`, `tune` | -| `normalize` | Toggle dynamic volume normalization & ReplayGain leveling | `%normalize` / `%normalize on` | `replaygain`, `volumenormalize`, `norm` | -| `player` | Create an interactive emoji control panel with live progress | `%player` | | -| `join` | Make the bot join a specific voice channel | `%join 123456789` | | -| `leave` | Make the bot leave the current voice channel | `%leave` | `l`, `stop` | -| `forceleave` | Force the bot to leave any channel (requires Manage Channels) | `%forceleave` | `fl` | -| `seek` | Seek to a specific position in the current track | `%seek 1:30` / `%seek 90` | | -| `move` | Move a track from one position to another in the queue | `%move 2 5` | `mv`, `m` | -| `autoplay` | Toggle autoplay β€” automatically play similar tracks when queue ends | `%autoplay` | `ap` | -| `trackopt` | Set custom start/end times for tracks | `%trackopt set 0:30 3:45` | `to` | +| `play` | `p` | Play a track, search query, or playlist | `%play Blinding Lights` | +| `playnext` | `pn` | Insert a song at the very top of the queue | `%playnext Starboy` | +| `pause` | β€” | Pause audio playback | `%pause` | +| `resume` | β€” | Resume paused playback | `%resume` | +| `skip` | `s` | Skip to the next track (vote-skip in busy rooms) | `%skip` | +| `previous` | `prev`, `back`, `undo` | Play the previous song from history | `%previous` | +| `replay` | `restart` | Restart the currently playing song from 0:00 | `%replay` | +| `seek` | β€” | Jump to a specific timestamp in the track | `%seek 1:45` | +| `np` | `current`, `nowplaying` | Show detailed now-playing track card | `%np` | +| `volume` | `v`, `vol` | Adjust playback volume (1–200%) | `%volume 85` | +| `volumedefault` | `vd` | Set default volume for the server | `%volumedefault 75` | +| `autoplay` | `ap` | Toggle similar-track autoplay when queue ends | `%autoplay on` | +| `normalize` | `norm`, `replaygain` | Toggle dynamic loudness normalization | `%normalize on` | -### Utility +### πŸ“‘ Queue Management -| Command | Description | Usage | Aliases | +| Command | Aliases | Description | Example | | :--- | :--- | :--- | :--- | -| `ping` | Check the bot's latency and connection health | `%ping` | `latency`, `pong` | -| `settings` | View or change server settings (requires Manage Server) | `%settings set` | `prefix`, `pfx`, `247` | -| `stats` | Display bot stats (uptime, ping, player count, stored scrobbles) | `%stats` | `info`, `botinfo`, `about` | -| `invite` | Get the bot invite link | `%invite` | `addbot`, `remix` | -| `support` | Get an invite to the support server | `%support` | `server` | -| `lastfm` | Link Last.fm, toggle scrobbling, view profile, love/unlove tracks, top artists, play tracks, leaderboard | `%lastfm link` / `%lastfm love` / `%lastfm artists` / `%lastfm lb` | `lf`, `lfm` | -| `vote` | Check FluxerList voters for the bot | `%vote` | | -| `logtest` | Send a test entry to your error-log channel (owner) | `%logtest` | | -| `reload` | Reload commands or modules at runtime (owner) | `%reload` | | -| `servers` | List servers the bot is in (owner) | `%servers` | | -| `eval` | Evaluate JavaScript (owner only) | `%eval 1+1` | | -| `debug` | Debug voice connections and player state (owner) | `%debug voice` | | -| `test` | Show voice channel user counts (owner) | `%test` | | +| `list` | `queue`, `q` | Display interactive paginated queue | `%list` | +| `shuffle` | β€” | Randomize the order of queued tracks | `%shuffle` | +| `move` | `mv`, `m` | Move a song from one position to another | `%move 4 1` | +| `remove` | β€” | Remove a track or range from the queue | `%remove 3` / `%remove 5-8` | +| `clear` | `c` | Clear upcoming tracks or a range | `%clear` / `%clear 2 10` | +| `loop` | β€” | Toggle repeat mode (`song`, `queue`, or `off`) | `%loop queue` | +| `trackopt` | `to` | Configure custom start/end timestamps | `%trackopt set 0:30 3:15` | -## Self-Hosting The Bot +### πŸŽ›οΈ Audio Effects & Filters -If you prefer to host Remix yourself, please note: **You must make it clear that your bot is an instance of Remix.** Change the bot's name and give credit in the bot's profile (e.g., *"Powered by [Remix](https://github.com/remix-bot/fluxer)"*). - -### Quick Start with Docker (Recommended) - -The fastest way to self-host Remix is with Docker. Everything β€” the bot, MySQL, Redis, and NodeLink β€” runs in containers with a single command. All Docker files live in the `docker/` folder. - -1. **Clone and configure:** - ```bash - git clone https://github.com/remix-bot/fluxer.git - cd fluxer/docker - cp config_example.json config.json - cp .env.example .env # optional β€” compose has working defaults - ``` - -2. **Edit `config.json`** β€” fill in your bot token, MySQL credentials (defaults match the compose MySQL service), NodeLink details (defaults match the compose NodeLink service), and your owner IDs. Spotify/Deezer/Apple Music credentials are configured on the **NodeLink side** (`nodelink.config.json`), not in the bot config. - -3. **Edit `.env`** (optional) β€” MySQL passwords, host port mappings (`WEB_PORT`, `NODELINK_PORT`), and timezone. - -4. **Start everything:** - ```bash - docker compose up -d - ``` - -5. **Check logs:** - ```bash - docker compose logs -f bot - ``` - -That's it. The bot will start, connect to MySQL (Last.fm and track-options tables are auto-created), connect to NodeLink, and log in to Fluxer. - -#### Docker file structure - -``` -docker/ -β”œβ”€β”€ Dockerfile # Multi-stage build (Node 22 + tini, non-root user, healthcheck) -β”œβ”€β”€ docker-entrypoint.sh # Writes config.json from CONFIG_JSON env var on first boot -β”œβ”€β”€ docker-compose.yml # bot + MySQL + Redis + NodeLink -β”œβ”€β”€ .env.example # Compose env template (MySQL creds, ports, TZ) -β”œβ”€β”€ config_example.json # Docker-friendly config template -β”œβ”€β”€ config.json # You create this (gitignored) -β”œβ”€β”€ .env # You create this (gitignored) -└── nodelink.config.json # NodeLink audio node config -``` - -#### Docker services - -| Service | Container | Port | Purpose | +| Command | Aliases | Description | Example | | :--- | :--- | :--- | :--- | -| `bot` | remix-bot | `${WEB_PORT:-8080}` β†’ 80 | The Remix bot (+ optional dashboard backend) | -| `mysql` | remix-mysql | β€” | Settings, Last.fm users, and track options storage | -| `redis` | remix-redis | β€” | Dashboard RPC pub/sub (optional) | -| `nodelink` | remix-nodelink | `${NODELINK_PORT:-3000}` | Lavalink-compatible audio node (`ghcr.io/performanc/nodelink:latest`) | +| `filter` | `fx`, `effect` | Interactive filter picker menu | `%filter` | +| `bassboost` | `bb`, `bass` | Apply bass boost (`low`, `medium`, `hard`, `off`) | `%bassboost medium` | +| `speed` | `rate`, `tempo` | Adjust playback speed multiplier (0.5×–2.0Γ—) | `%speed 1.2` | +| `pitch` | `semitone`, `tune` | Adjust pitch multiplier (0.5×–2.0Γ—) | `%pitch 1.15` | -#### Useful Docker commands +### πŸ“Š Last.fm Suite -```bash -# Run from the docker/ folder -cd docker - -# Start all services -docker compose up -d - -# View live bot logs -docker compose logs -f bot - -# Restart the bot -docker compose restart bot - -# Stop everything -docker compose down - -# Stop and delete data volumes (full reset) -docker compose down -v - -# Rebuild after code changes -docker compose up -d --build bot -``` - -#### Using `CONFIG_JSON` env var instead of a mounted file - -If you prefer to keep your config in an environment variable (useful for CI/CD or secret managers), set `CONFIG_JSON` in your `.env`: - -```bash -CONFIG_JSON={"token":"YOUR_TOKEN","mysql":{"host":"mysql","port":3306,"user":"remix","password":"remix_pw","database":"remix"},"nodelink":{"host":"nodelink","port":3000,"password":"youshallnotpass"}} -``` - -The entrypoint will write it to `/app/config.json` on first boot if no config file is mounted. - -### Manual Installation (Without Docker) - -#### Prerequisites - -- **Node.js** >= 22.13.0 -- **MySQL** 8.0+ with JSON column support -- **[NodeLink](https://github.com/PerformanC/NodeLink)** instance (Lavalink-compatible audio node) -- **Redis** (optional β€” required only for the dashboard backend) - -### Installation - -1. **Clone the repository:** - ```bash - git clone https://github.com/remix-bot/fluxer.git - cd fluxer - ``` - -2. **Install dependencies:** - ```bash - npm install - ``` - -3. **Configure the bot:** - ```bash - cp config_example.json config.json - ``` - Open `config.json` and fill in the required values: - - `token` β€” your Fluxer bot token - - `mysql` β€” your MySQL connection details (host, port, user, password, database) - - `prefix` β€” the command prefix (default: `%`) - - `nodelink` β€” your NodeLink instance connection details - - `lastfm` β€” (optional) Last.fm API credentials for scrobbling/autoplay features - - `owners` β€” array of Fluxer user IDs with owner-only command access - -4. **Set up the database:** *(See [Database Setup](#-database-setup) below)* - -5. **Start the bot:** - ```bash - npm start - ``` - - For development with inspector: - ```bash - npm run dev - ``` - -### Database Setup - -Remix requires a MySQL database to store per-guild settings and user data. - -1. Create a dedicated database for Remix: - ```sql - CREATE DATABASE remix; - ``` - -2. Enter your MySQL connection details into `config.json`: - ```json - "mysql": { - "host": "localhost", - "port": 3306, - "user": "remix", - "password": "your-password", - "database": "remix" - } - ``` - -3. Create the required `settings` table: - ```sql - CREATE TABLE `settings` ( - `id` varchar(70) NOT NULL, - `data` json NOT NULL - ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; - ``` - -4. Everything else is **auto-created on startup** if missing: - - `track_options` β€” per-user per-track start/end times (`%trackopt`) - - `lastfm_users` β€” Last.fm session keys and scrobble opt-ins - - `lastfm_stats` β€” stored scrobble/link counts - -5. *(Optional)* If you need to clone or repair the settings table across bot IDs, run: - ```bash - npm run migrate - ``` - -### Dashboard Setup (Optional) - -Remix ships the **backend half** of a web dashboard: a Redis-RPC service that an external frontend project talks to. There is no HTTP server or web UI in this repository. - -1. Enable it in `config.json`: - ```json - "dashboard": { - "enabled": true, - "redis": { "url": "redis://localhost:6379" } - } - ``` - -2. How it works: - - The bot listens on Redis pub/sub channels (`request` / `response` / `info`) and answers JSON-RPC style requests with an `id` for correlation. - - Supported requests: `fetchPlayers`, `user`, `sharedServers`, `server`, `allServers`, `commands`, and `function` (remote actions: `join`, `pausePlayback`, `resumePlayback`, `skip`, `volume`, `addToQueue`, `voiceState`, `leave`, `testConnection`). - - Player updates are broadcast (debounced) on per-bot/per-player Redis channels so the frontend can render live state. - - **Login flow:** the external frontend writes login codes into the MySQL `login_codes` table; the bot verifies them with bcrypt hashes and marks them verified. Player control additionally requires the user to be in the same voice channel (owners are exempt). - -3. **Security note:** the RPC channel has **no shared secret** β€” anything that can publish to your Redis can invoke the remote actions. Keep Redis network-isolated (as the Docker setup does) and don't expose it publicly. - ---- - -## Configuration Reference - -Key configuration options in `config.json`: - -| Option | Type | Default | Description | +| Command | Aliases | Description | Example | | :--- | :--- | :--- | :--- | -| `token` | string | β€” | **Required.** Fluxer bot token | -| `instanceUrl` | string/null | `null` | Base URL of a self-hosted Fluxer instance (leave null for fluxer.app) | -| `prefix` | string | `%` | Default command prefix | -| `embedColor` | string | `0xe9196c` | Hex color for embed messages | -| `owners` | string[] | `[]` | User IDs with owner privileges | -| `playerAFKTimeout` | number | `60000` | Inactivity timeout in ms before the player panel session ends | -| `customStatsFooter` | string | β€” | Custom text shown in the `%stats` embed footer | -| `presenceInterval` | number | `30000` | Interval in ms for rotating bot presence status | -| `presenceContents` | array | `[]` | Presence status messages to cycle through (strings or objects with `text`/`emoji_name`/`emoji_id`/`activity`) | -| `mysql` | object | β€” | **Required.** MySQL connection settings (`host`, `port`, `user`, `password`, `database`, `connectionLimit`) | -| `nodelink` | object | β€” | NodeLink connection (`host`, `port`, `password`, `requestTimeout`) | -| `audio` | object | β€” | Audio streaming options (`allowLoadstream: false` for zero-re-encode `/v4/trackstream`) | -| `bilibili` | object | β€” | Anonymous Bilibili proxy (`enabled`, `bind`, `port`, `advertiseHost`, `remoteProxy`, `remoteSecret`) | -| `lastfm` | object | β€” | Last.fm integration (`apiKey`, `apiSecret`, `scrobbleThreshold`, `scrobbleMinMs`) | -| `fluxerlist` | object | β€” | FluxerList integration (`apiKey`, `serverId`, `botId`, `serverSlug`, `botSlug`) | -| `dashboard` | object | β€” | Dashboard backend: `enabled`, `redis.url` | -| `errorLogChannel` | object | β€” | Error log forwarding to Fluxer channel (`enabled`, `channelId`, `forwardWarn`, `forwardInfo`, `startupMessage`) | -| `radio` | array | `[]` | Custom radio station definitions | -| `logging` | object | β€” | Per-category log toggles: `enabled`, `warn`, and 14 categories (`player`, `inactivity`, `aloneCheck`, `voiceState`, `voice247`, `voice`, `mediaplayer`, `commands`, `guild`, `recovery`, `settings`, `lavalink`, `dashboard`, `redis`) | -| `timers` | object | β€” | Timing values in ms: `inactivityTimeout`, `aloneCheckInterval`, `aloneCheckDebounce`, `rejoin247Delay`, `leave247RejoinDelay`, `playerUpdateInterval`, `searchSessionTimeout`, `playerSessionTimeout`, `intentionalLeaveTTL` | -| `sharding` | object | β€” | Sharding supervisor options (`totalShards`, `shardsPerProcess`, `respawn`, `spawnTimeout`, `spawnDelay`) | -| `fluxer.js` | object | β€” | Fluxer.js REST options (`timeout`, `retries`) | +| `lastfm` | `lf`, `lfm` | Main Last.fm hub | `%lastfm` | +| `lastfm link` | β€” | Link your Last.fm username | `%lastfm link your_user` | +| `lastfm love` | β€” | Love/unlove the currently playing track | `%lastfm love` | +| `lastfm whoknows` | `wk` | See who in the server listens to an artist | `%lastfm whoknows Queen` | +| `lastfm crowns` | β€” | View artist crown holders in the server | `%lastfm crowns` | +| `lastfm top` | β€” | View your top tracks, artists, or albums | `%lastfm top artists` | +| `lastfm lb` | β€” | View server-wide scrobble leaderboard | `%lastfm lb` | ---- +### βš™οΈ Server & Voice Settings -## Project Architecture +| Command | Aliases | Description | Example | +| :--- | :--- | :--- | :--- | +| `settings` | `247`, `prefix` | View or configure server preferences | `%settings get` | +| `join` | `connect` | Connect bot to your voice channel | `%join` | +| `leave` | `stop`, `disconnect` | Disconnect bot from voice | `%leave` | +| `forceleave` | `fl` | Force disconnect from any channel (Admin) | `%forceleave` | +| `radio` | `r` | Browse and play internet radio streams | `%radio list` | +| `lyrics` | `ly` | Search or display synced lyrics | `%lyrics` | +| `thumbnail` | `thumb` | View high-resolution track thumbnail | `%thumbnail` | +| `player` | β€” | Spawn interactive reaction controller | `%player` | -``` -fluxer/ -β”œβ”€β”€ index.mjs # Entry point β€” creates the Remix instance, process-level -β”‚ # error guards, and signal-based graceful shutdown -β”œβ”€β”€ shard.mjs # OPTIONAL sharding supervisor (@fluxerjs/sharding) β€” forks -β”‚ # one child process per shard slice, each running index.mjs -β”œβ”€β”€ config_example.json # Configuration template -β”œβ”€β”€ package.json -β”œβ”€β”€ commands/ # 43 command entry files (one per command); the three -β”‚ β”‚ # largest (lastfm, settings, debug) are split into action-family -β”‚ β”‚ # modules inside commands// subdirectories -β”‚ β”œβ”€β”€ lastfm/ # lastfm action families (account, playback, listening, -β”‚ β”‚ # whoknows, info, tags, discovery, help, shared) -β”‚ β”œβ”€β”€ settings/ # settings helpers (utils, channels247, setters) -β”‚ └── debug/ # debug helpers (consts, gateway, rejoin, voiceDiagnostic) -β”œβ”€β”€ settings/ # Settings system entry points (re-export, migrate, validators) -β”œβ”€β”€ storage/ # Runtime data: defaults, modules.json, locales -β”œβ”€β”€ docker/ # Docker self-hosting (Dockerfile, compose, entrypoint, -β”‚ # config templates, .env.example) -└── src/ - β”œβ”€β”€ core/ # Bot composition - β”‚ β”œβ”€β”€ Bot.mjs # Remix class β€” boot sequence, service wiring, alone-check, - β”‚ β”‚ # presence rotation, WebSocket error guards - β”‚ β”œβ”€β”€ BotVoiceMixin.mjs # Voice-channel resolution, 24/7 player spawning with - β”‚ β”‚ # announcements, programmatic leave, shared servers - β”‚ β”œβ”€β”€ Logger.mjs # Structured logger with per-category control - β”‚ └── Locale.mjs # i18n translation engine - β”œβ”€β”€ commands/ # Command framework layer - β”‚ β”œβ”€β”€ index.mjs # Public surface (re-exports) - β”‚ β”œβ”€β”€ CommandBuilder.mjs # Fluent builder + permission requirements - β”‚ β”œβ”€β”€ Option.mjs # Typed options + flags with validation - β”‚ β”œβ”€β”€ CommandHandler.mjs # Dispatcher: parsing, cooldowns, permission checks - β”‚ β”œβ”€β”€ CommandLoader.mjs # Dynamic command loading + run-handler binding - β”‚ β”œβ”€β”€ HelpHandler.mjs # Text help generation (usage/aliases/options) - β”‚ └── PrefixManager.mjs # Per-guild prefix resolution - β”œβ”€β”€ ui/ # Message/embed layer - β”‚ β”œβ”€β”€ index.mjs # Public surface (re-exports) - β”‚ β”œβ”€β”€ MessageHandler.mjs # Reply/send/edit embeds, reaction + message observers, - β”‚ β”‚ # permission checks, pagination entry - β”‚ β”œβ”€β”€ Wrappers.mjs # Message & Channel wrappers - β”‚ β”œβ”€β”€ Paginators.mjs # PageBuilder, RichPaginator (tabbed), QueuePaginator - β”‚ β”œβ”€β”€ HelpCommand.mjs # Rich tabbed help command (Home/Music/Utilities/Support) - β”‚ β”œβ”€β”€ Permissions.mjs # Required/critical/optional bot permission catalog - β”‚ └── Embeds.mjs # Global embed color + message-shape helpers - β”œβ”€β”€ voice/ # Gateway & voice-state layer - β”‚ β”œβ”€β”€ VoiceStateCache.mjs # Dual LRU voice-state caches (humans / bots) - β”‚ β”œβ”€β”€ VoiceStateResolver.mjs # Voice-state normalization + humans-in-channel check - β”‚ └── gateway/ - β”‚ β”œβ”€β”€ index.mjs # Public surface - β”‚ β”œβ”€β”€ GatewayHandler.mjs # Raw WS dispatch, presence rotation, boot recovery - β”‚ β”œβ”€β”€ VoiceStateRouting.mjs # Voice-state update handling, inactivity triggers - β”‚ β”œβ”€β”€ GuildSync.mjs # Guild seeding (cache + REST), guild delete - β”‚ └── RejoinManager.mjs # 24/7 rejoin scheduling with retries - β”œβ”€β”€ music/ # Player + audio engine layer - β”‚ β”œβ”€β”€ PlayerManager.mjs # Player lifecycle & registry, getPlayer/initPlayer - β”‚ β”œβ”€β”€ PlayerEventsMixin.mjs # Per-player event wiring, scrobbles, broadcasts - β”‚ β”œβ”€β”€ PlayerLifecycleMixin.mjs# Voice checks, prompts, joins, leaves - β”‚ β”œβ”€β”€ LavalinkManager.mjs # lavalink-client wrapper (NodeLink mode) - β”‚ β”œβ”€β”€ probe.mjs # ffprobe wrapper for radio stream metadata - β”‚ β”œβ”€β”€ providers.mjs # 45+ audio source provider definitions - β”‚ β”œβ”€β”€ player/ - β”‚ β”‚ β”œβ”€β”€ index.mjs # Public surface (default export: Player) - β”‚ β”‚ β”œβ”€β”€ Player.mjs # Core state machine: join/leave/destroy, controls, 24/7 - β”‚ β”‚ β”œβ”€β”€ Queue.mjs # Queue data structure with loop modes + events - β”‚ β”‚ β”œβ”€β”€ PlaybackMixin.mjs # playNext pipeline, track-end timers, lyrics - β”‚ β”‚ β”œβ”€β”€ SearchMixin.mjs # Lavalink search, fallbacks, radio/external builders - β”‚ β”‚ └── DisplayMixin.mjs # Now-playing, queue listing, announcements - β”‚ └── audio/ - β”‚ β”œβ”€β”€ index.mjs # Public surface - β”‚ β”œβ”€β”€ FluxerAudioBridge.mjs # NodeLink streams β†’ LiveKit publishing core - β”‚ β”œβ”€β”€ StreamPipeline.mjs # Magic-byte sniffing, remux, Opus encode - β”‚ β”œβ”€β”€ HttpStreams.mjs # Redirect-following HTTP JSON/stream helpers - β”‚ └── WebMOpusMuxer.mjs # Streaming EBML/Matroska muxer (Opus β†’ WebM) - β”œβ”€β”€ services/ # Integrations - β”‚ β”œβ”€β”€ FluxerListManager.mjs # FluxerList voters API client (TTL cache) - β”‚ β”œβ”€β”€ TrackOptionsManager.mjs # Per-user per-track start/end times (MySQL + LRU) - β”‚ └── lastfm/ - β”‚ β”œβ”€β”€ index.mjs # Public surface - β”‚ β”œβ”€β”€ LastFmManager.mjs # Base: config, MySQL pool, shared helpers - β”‚ β”œβ”€β”€ UserStoreMixin.mjs # Linking, sessions, scrobble opt-ins - β”‚ β”œβ”€β”€ ScrobblingMixin.mjs # Scrobble + now-playing - β”‚ β”œβ”€β”€ TrackQueriesMixin.mjs # Track/artist/album/tag/geo/chart queries - β”‚ β”œβ”€β”€ UserQueriesMixin.mjs # User tops, charts, playlists, play categories - β”‚ β”œβ”€β”€ ServerStatsMixin.mjs # Whoknows, crowns, leaderboards, affinity - β”‚ β”œβ”€β”€ constants.mjs # Signed API-call plumbing - β”‚ └── urlUtils.mjs # lastfm:// URL parsing - β”œβ”€β”€ db/ # Persistence - β”‚ β”œβ”€β”€ PoolManager.mjs # Unified MySQL pool manager (callback & promise APIs) - β”‚ β”œβ”€β”€ Settings.mjs # SettingsManager / ServerSettings / RemoteSettingsManager - β”‚ β”‚ # (MySQL-backed, debounced JSON_SET writes) - β”‚ └── DatabaseManager.mjs # mysql2 pool + parameterized queries + bcrypt helpers - β”œβ”€β”€ utils/ # Cross-layer primitives (leaf layer) - β”‚ β”œβ”€β”€ mixins.mjs # applyMixins β€” god-class splitting helper - β”‚ β”œβ”€β”€ ShardingUtils.mjs # Shard-aware gateway helpers (2.2/3.0 compatible, - β”‚ β”‚ # guildβ†’shard routing, local shard enumeration) - β”‚ β”œβ”€β”€ Utils.mjs # Formatting, validation, ID cleaning - β”‚ β”œβ”€β”€ API.mjs # REST call helpers (status/error wrapping) - β”‚ β”œβ”€β”€ UI.mjs # Shared UI constants (colors) - β”‚ └── Helpers247.mjs # 24/7 channel-mode helpers - └── dashboard/ # Dashboard backend - β”œβ”€β”€ index.mjs # Public surface - β”œβ”€β”€ Dashboard.mjs # Redis RPC routing, player/user broadcasts - β”œβ”€β”€ RpcHandlersMixin.mjs# Request handlers + authorization checks - β”œβ”€β”€ Serializers.mjs # Channel/user/player/command serializers (statics) - └── RedisHandler.mjs # Redis pub/sub RPC transport with reconnect handling -``` +### πŸ› οΈ Utilities & Diagnostics ---- - -## The Layered Codebase - -The rewrite organises the codebase into strict layers with one-way dependencies -(no layer reaches *down* past another): - -``` -index.mjs - └── core/ ──────────────► composition root: wires every layer together - β”œβ”€β”€ commands/ ─────► command framework (parsing, cooldowns, help) - β”‚ └── ui/ ─────► message/embed primitives used by the framework - β”œβ”€β”€ ui/ ──── message wrappers, paginators, permissions - β”œβ”€β”€ voice/ ──── gateway events, voice-state caches, 24/7 rejoin - β”œβ”€β”€ music/ ──── players, queue, audio engine, Lavalink client - β”œβ”€β”€ services/ ──── Last.fm, FluxerList, track options - β”œβ”€β”€ db/ ──── MySQL settings + dashboard database pool - └── dashboard/ ──── Redis-RPC backend -``` - -**God classes were eliminated.** The five largest modules (Player, PlayerManager, -GatewayHandler, FluxerAudioBridge, LastFmManager, Dashboard) are each split into a -small base class plus **concern mixins** β€” one file per responsibility, applied onto -the class at load time via `src/utils/mixins.mjs` (`applyMixins`). All methods keep -the same names, so callers (including your own command files and modules) are -unaffected. - -**Big commands are grouped the same way.** The three commands that outgrew a -single file (`lastfm` 2.5k lines, `settings` 705, `debug` 669) keep their entry -file at `commands/.mjs` (same path the loader, `%reload` and help system -reference) and move their implementation into `commands//` β€” one module per -action family, dispatched by the entry's `run()` via per-module action sets: - -```js -// commands/lastfm.mjs (entry) β€” dispatch -if (ACCOUNT_ACTIONS.has(action)) - return runAccountActions.call(this, msg, data, lastfm, prefix, userId, targetUserId, action); -``` - -The loader only reads top-level `*.mjs` files, so the subdirectories are invisible -to command discovery; case bodies and helpers were moved verbatim (verified by -per-command runtime parity harnesses under `scripts/`), and every entry file keeps -its original exports (`playLastFmCategory` is still importable from -`commands/lastfm.mjs`). `commands/player.mjs` intentionally stays single-file: it -is one cohesive interactive UI flow (a single 500-line `run()` closure) with no -seams that could be split without rewriting behavior. - -**Public surfaces are barrels.** Each layer folder has an `index.mjs` that -re-exports its public API, so imports stay short and implementation files can move -without touching consumers: - -```js -import { CommandBuilder } from "../src/commands/index.mjs"; -import { Message, getGlobalColor } from "../src/ui/index.mjs"; -import Player from "../src/music/player/index.mjs"; -import { LastFmManager } from "../src/services/lastfm/index.mjs"; -``` - -**Compatibility is drop-in:** `config.json` keys, the MySQL schema, the Redis RPC -protocol, command names/aliases, locale files, and the Docker entrypoint -(`node index.mjs` at the repository root) are all unchanged from the previous -single-layer layout. - ---- - -## Localization - -Remix supports multiple languages out of the box. The locale system loads JSON translation files from `storage/locales/bot/` and serves the appropriate language based on each guild's `locale` setting. - -Currently supported languages: - -| Code | Language | -| :--- | :--- | -| `en` | English (default) | -| `ar-SA` | Arabic | -| `de-DE` | German | -| `ckb` | Kurdish (Sorani) | -| `pt-BR` | Brazilian Portuguese | -| `tr` | Turkish | - -To add a new language, place a JSON file in `storage/locales/bot/` following the same key structure as `en.json`, then set the locale per guild with `%settings set locale `. - ---- - -## npm Scripts - -| Script | Command | Description | +| Command | Aliases | Description | | :--- | :--- | :--- | -| `npm start` | `node index.mjs` | Start the bot (single process β€” default) | -| `npm run shard` | `node shard.mjs` | Start under the sharding supervisor (optional) | -| `npm run dev` | `node --inspect index.mjs --trace-warnings` | Start with Node.js inspector | -| `npm run migrate` | `node settings/migrate.mjs` | Clone/repair the remote settings table | +| `ping` | `latency` | View gateway latency and WebSocket round-trip | +| `stats` | `info`, `botinfo` | View bot uptime, RAM usage, active players, and servers | +| `invite` | `addbot` | Get bot invite link | +| `support` | `server` | Get official support community link | +| `vote` | β€” | View and support bot voters on FluxerList | --- -## Credits & License +## 🐳 Self-Hosting (Docker Setup) -**Development:** -- [ShadowLp174](https://github.com/ShadowLp174) β€” Lead developer -- [NoLogicAlan](https://github.com/NoLogicAlan) β€” Lead developer -- [Fantic](https://github.com/fanticwastaken) β€” Community Manager +The recommended way to run Remix is via Docker Compose. It bundles the bot, MySQL 8.4, Redis, and NodeLink into lightweight, automated containers. -**Powered by:** -- [`@fluxerjs/core`](https://github.com/fluxerjs/core) β€” Fluxer API client -- [`@fluxerjs/voice`](https://github.com/fluxerjs/voice) β€” LiveKit voice connections and playback -- [`lavalink-client`](https://www.npmjs.com/package/lavalink-client) β€” Lavalink/NodeLink client (search + streaming) -- [`NodeLink`](https://github.com/PerformanC/NodeLink) β€” Lavalink-compatible audio node -- [`prism-media`](https://github.com/discordjs/prism-media) β€” Opus encoding and stream demuxing +### 1. Clone & Configure +```bash +git clone https://github.com/remix-bot/fluxer.git +cd fluxer/docker +cp config_example.json config.json +cp .env.example .env +``` + +### 2. Edit Configuration +Open `docker/config.json` and insert your bot token: +```json +{ + "token": "YOUR_FLUXER_BOT_TOKEN", + "prefix": "%", + "owners": ["YOUR_USER_ID"], + "mysql": { + "host": "mysql", + "port": 3306, + "user": "remix", + "password": "remix_pw", + "database": "remix" + }, + "nodelink": { + "host": "nodelink", + "port": 3000, + "password": "youshallnotpass" + } +} +``` + +### 3. Start the Stack +```bash +docker compose up -d +``` + +### 4. Monitor Live Logs +```bash +docker compose logs -f bot +``` + +*To stop the stack:* `docker compose down` +*To update code and rebuild:* `docker compose up -d --build bot` + +--- + +## πŸ—οΈ Architecture + +``` +User (%play) ──► Command Handler ──► LavalinkManager (NodeLink Search) + β”‚ + β–Ό + Queue Engine (History + Lossless Navigation) + β”‚ + β–Ό + FluxerAudioBridge (In-Process Opus / WebM) + β”‚ + β–Ό + LiveKit Voice Connection (@fluxerjs/voice) +``` + +* **Zero Re-Encode Pipeline:** Audio tracks from NodeLink stream as native WebM/Opus straight into LiveKit voice rooms. +* **In-Process Seeks:** Byte-level cluster/page seeking (`StreamPositioner`) eliminates FFmpeg subprocess requirements. +* **Safe HTTP Execution:** All direct stream URLs pass through DNS verification and private-network IP filters (`SafeHttp`) to prevent SSRF vulnerabilities. + +--- + +## 🌍 Supported Languages + +Remix automatically adapts to each server's configured locale (`%settings set locale `): + +| Code | Language | Native Name | +| :---: | :--- | :--- | +| `en` | English | English (Default) | +| `ar-SA` | Arabic | Ψ§Ω„ΨΉΨ±Ψ¨ΩŠΨ© | +| `ckb` | Kurdish (Sorani) | کوردیی Ω†Ψ§ΩˆΫ•Ω†Ψ―ΫŒ | +| `tr` | Turkish | TΓΌrkΓ§e | +| `de-DE` | German | Deutsch | +| `pt-BR` | Portuguese (Brazil) | PortuguΓͺs Brasileiro | + +--- + +## πŸ‘₯ Credits & Team + +* **[ShadowLp174](https://github.com/ShadowLp174)** β€” Lead Developer +* **[NoLogicAlan](https://github.com/NoLogicAlan)** β€” Lead Developer +* **[Fantic](https://github.com/fanticwastaken)** β€” Community Manager + +**Core Libraries:** +* [`@fluxerjs/core`](https://github.com/fluxerjs/core) & [`@fluxerjs/voice`](https://github.com/fluxerjs/voice) β€” Fluxer API & LiveKit voice +* [`NodeLink`](https://github.com/PerformanC/NodeLink) β€” High-performance audio node +* [`lavalink-client`](https://www.npmjs.com/package/lavalink-client) β€” Audio client & search interface ---

- © 2026 Remix. Code licensed under the MIT License.
+ © 2026 Remix. Licensed under the MIT License.
The Remix name, logo, and branding are proprietary and may not be reused.