mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
Fixed
This commit is contained in:
1 parent
13e9ddcfc9
commit
b1ea77b197
1 file changed
+44
-47
@@ -57,11 +57,11 @@ We believe music features shouldn't be locked behind paywalls — **all commands
|
|||||||
## Features
|
## Features
|
||||||
|
|
||||||
- **High-quality audio playback** via moonlink.js (Lavalink proxy) and `@fluxerjs/voice`
|
- **High-quality audio playback** via moonlink.js (Lavalink proxy) and `@fluxerjs/voice`
|
||||||
- **Multi-source search** — YouTube, Spotify, SoundCloud, and direct URL support
|
- **Multi-source search** — YouTube, Spotify, SoundCloud, Deezer, Apple Music, Tidal, and direct URL support
|
||||||
- **24/7 mode** — keep the bot in a voice channel permanently, with auto-recovery on restart
|
- **24/7 mode** — keep the bot in a voice channel permanently, with auto-recovery on restart
|
||||||
- **Session recovery** — active players and queues survive bot restarts and crash recovery
|
- **Session recovery** — active players and queues survive bot restarts and crash recovery
|
||||||
- **Interactive emoji player** — reaction-based control panel with play, pause, skip, volume, shuffle, and more
|
- **Interactive emoji player** — reaction-based control panel with play, pause, skip, volume, shuffle, and more
|
||||||
- **Lyrics** — fetch song lyrics via the Genius API
|
- **Lyrics** — fetch synced lyrics via NodeLink
|
||||||
- **Radio stations** — built-in support for custom radio streams with keyword-based search
|
- **Radio stations** — built-in support for custom radio streams with keyword-based search
|
||||||
- **Server settings** — per-guild configuration for prefix, volume, locale, 24/7 channels, and more
|
- **Server settings** — per-guild configuration for prefix, volume, locale, 24/7 channels, and more
|
||||||
- **Web dashboard** — optional browser-based control panel with Redis-backed sessions and Fluxer OAuth2 login
|
- **Web dashboard** — optional browser-based control panel with Redis-backed sessions and Fluxer OAuth2 login
|
||||||
@@ -94,53 +94,38 @@ Below is the complete list of Remix's commands. The default prefix is `%`.
|
|||||||
| `playnext` | Add a song/playlist to the *top* of the queue | `%playnext query: text` | `pn` |
|
| `playnext` | Add a song/playlist to the *top* of the queue | `%playnext query: text` | `pn` |
|
||||||
| `pause` | Pause the current playback | `%pause` | |
|
| `pause` | Pause the current playback | `%pause` | |
|
||||||
| `resume` | Resume the paused playback | `%resume` | |
|
| `resume` | Resume the paused playback | `%resume` | |
|
||||||
| `skip` | Skip the currently playing song | `%skip` | |
|
| `skip` | Skip the currently playing song | `%skip` | `s` |
|
||||||
| `np` | Show the currently playing song | `%np` | `current`, `nowplaying` |
|
| `np` | Show the currently playing song | `%np` | `current`, `nowplaying` |
|
||||||
| `list` | View the upcoming queue | `%list` | `queue` |
|
| `list` | View the upcoming queue | `%list` | `queue`, `q` |
|
||||||
| `loop` | Toggle loop mode (song or queue) | `%loop queue` | |
|
| `loop` | Toggle loop mode (song or queue) | `%loop queue` | |
|
||||||
| `shuffle` | Randomize the queue order | `%shuffle` | |
|
| `shuffle` | Randomize the queue order | `%shuffle` | |
|
||||||
| `remove` | Remove a specific song by its queue index | `%remove 3` | |
|
| `remove` | Remove a specific song by its queue index | `%remove 3` | |
|
||||||
| `clear` | Clear the entire queue | `%clear` | `c` |
|
| `clear` | Clear the entire queue | `%clear` | `c` |
|
||||||
| `volume` | Change the playback volume (1–200) | `%volume 50` | `v` |
|
| `volume` | Change the playback volume (1–200) | `%volume 50` | `v`, `vol` |
|
||||||
| `volumedefault` | Set the default volume for the server | `%volumedefault 80` | |
|
| `volumedefault` | Set the default volume for the server | `%volumedefault 80` | `vd` |
|
||||||
| `search` | Search for a track and pick from results | `%search query` | |
|
| `search` | Search for a track and pick from results | `%search query` | |
|
||||||
| `lyrics` | Fetch lyrics for the current or specified song | `%lyrics` | |
|
| `lyrics` | Display synced lyrics from NodeLink | `%lyrics` | `lyric`, `ly` |
|
||||||
| `thumbnail` | Get the thumbnail of the current track | `%thumbnail` | `thumb` |
|
| `thumbnail` | Get the thumbnail of the current track | `%thumbnail` | `thumb` |
|
||||||
| `radio` | Play a built-in or custom radio station | `%radio` | |
|
| `radio` | Play a built-in or custom radio station | `%radio` | `r` |
|
||||||
|
| `filter` | Manage audio filters (bass, speed, nightcore, etc.) | `%filter bass 50` | `filters`, `fx`, `effect` |
|
||||||
### Voice Channel
|
| `player` | Create an interactive emoji control panel with live progress | `%player` | |
|
||||||
|
|
||||||
| Command | Description | Usage | Aliases |
|
|
||||||
| :--- | :--- | :--- | :--- |
|
|
||||||
| `join` | Make the bot join a specific voice channel | `%join 123456789` | |
|
| `join` | Make the bot join a specific voice channel | `%join 123456789` | |
|
||||||
| `leave` | Make the bot leave the current voice channel | `%leave` | `l` |
|
| `leave` | Make the bot leave the current voice channel | `%leave` | `l`, `stop` |
|
||||||
| `forceleave` | Force the bot to leave any channel (owner only) | `%forceleave` | |
|
| `forceleave` | Force the bot to leave any channel (requires Manage Channels) | `%forceleave` | `fl` |
|
||||||
|
|
||||||
### Player & UI
|
|
||||||
|
|
||||||
| Command | Description | Usage | Aliases |
|
|
||||||
| :--- | :--- | :--- | :--- |
|
|
||||||
| `player` | Create an interactive emoji control panel | `%player` | |
|
|
||||||
|
|
||||||
### Settings & Server
|
|
||||||
|
|
||||||
| Command | Description | Usage | Aliases |
|
|
||||||
| :--- | :--- | :--- | :--- |
|
|
||||||
| `settings` | View or change server settings | `%settings set` | `s` |
|
|
||||||
| `filter` | Manage audio filters (bass, speed, nightcore, etc.) | `%filter bass 50` | |
|
|
||||||
|
|
||||||
### Utility
|
### Utility
|
||||||
|
|
||||||
| Command | Description | Usage | Aliases |
|
| Command | Description | Usage | Aliases |
|
||||||
| :--- | :--- | :--- | :--- |
|
| :--- | :--- | :--- | :--- |
|
||||||
| `stats` | Display bot stats (uptime, ping, node info) | `%stats` | `info` |
|
| `settings` | View or change server settings (requires Manage Server) | `%settings set` | `prefix`, `pfx`, `247` |
|
||||||
| `invite` | Get the bot invite link | `%invite` | |
|
| `stats` | Display bot stats (uptime, ping, player count) | `%stats` | `info` |
|
||||||
| `support` | Get an invite to the support server | `%support` | |
|
| `invite` | Get the bot invite link | `%invite` | `addbot`, `remix` |
|
||||||
| `reload` | Reload commands or settings at runtime (owner) | `%reload` | |
|
| `support` | Get an invite to the support server | `%support` | `server` |
|
||||||
|
| `reload` | Reload commands or modules at runtime (owner) | `%reload` | |
|
||||||
| `servers` | List servers the bot is in (owner) | `%servers` | |
|
| `servers` | List servers the bot is in (owner) | `%servers` | |
|
||||||
| `eval` | Evaluate JavaScript (owner only) | `%eval 1+1` | |
|
| `eval` | Evaluate JavaScript (owner only) | `%eval 1+1` | |
|
||||||
| `debug` | Debugging utilities (owner only) | `%debug` | |
|
| `debug` | Debug voice connections and player state (owner) | `%debug voice` | |
|
||||||
| `test` | Developer testing command | `%test 1` | |
|
| `test` | Show voice channel user counts (owner) | `%test` | |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -179,7 +164,7 @@ If you prefer to host Remix yourself, please note: **You must make it clear that
|
|||||||
- `prefix` — the command prefix (default: `%`)
|
- `prefix` — the command prefix (default: `%`)
|
||||||
- `nodelink` — your NodeLink instance connection details
|
- `nodelink` — your NodeLink instance connection details
|
||||||
- `spotify` — (optional) Spotify API credentials for Spotify track support
|
- `spotify` — (optional) Spotify API credentials for Spotify track support
|
||||||
- `geniusToken` — (optional) Genius API token for lyrics support
|
- `geniusToken` — *(deprecated, unused)* was previously for lyrics; lyrics are now fetched via NodeLink
|
||||||
- `owners` — array of Fluxer user IDs with owner-only command access
|
- `owners` — array of Fluxer user IDs with owner-only command access
|
||||||
|
|
||||||
4. **Set up the database:** *(See [Database Setup](#-database-setup) below)*
|
4. **Set up the database:** *(See [Database Setup](#-database-setup) below)*
|
||||||
@@ -267,19 +252,26 @@ Key configuration options in `config.json`:
|
|||||||
| `embedColor` | string | `0xe9196c` | Hex color for embed messages |
|
| `embedColor` | string | `0xe9196c` | Hex color for embed messages |
|
||||||
| `owners` | string[] | `[]` | User IDs with owner privileges |
|
| `owners` | string[] | `[]` | User IDs with owner privileges |
|
||||||
| `playerAFKTimeout` | number | `60000` | Inactivity timeout in ms before bot leaves |
|
| `playerAFKTimeout` | number | `60000` | Inactivity timeout in ms before bot leaves |
|
||||||
|
| `customStatsFooter` | string | — | Custom text shown in the `%stats` embed footer |
|
||||||
| `webPort` | number | `80` | Port for the web dashboard |
|
| `webPort` | number | `80` | Port for the web dashboard |
|
||||||
| `helpCatalog` | bool | `true` | Enable categorized help command |
|
| `helpCatalog` | bool | `true` | Enable categorized help command |
|
||||||
| `helpPagination` | bool | `true` | Enable paginated help output |
|
| `helpPagination` | bool | `true` | Enable paginated help output |
|
||||||
| `mysql` | object | — | **Required.** MySQL connection settings |
|
| `mysql` | object | — | **Required.** MySQL connection settings |
|
||||||
| `nodelink` | object | — | NodeLink connection (host, port, password) |
|
| `nodelink` | object | — | NodeLink connection (`host`, `port`, `password`, `requestTimeout`) |
|
||||||
| `spotify` | object | — | Spotify API credentials |
|
| `spotify` | object | — | Spotify API credentials (`clientId`, `clientSecret`) |
|
||||||
| `geniusToken` | string | — | Genius API token for lyrics |
|
| `geniusToken` | string | — | *(Deprecated, unused)* Previously for lyrics; lyrics are now fetched via NodeLink |
|
||||||
| `dashboard` | object | — | Dashboard, Redis, and OAuth2 settings |
|
| `dashboard` | object | — | Dashboard config: `enabled`, `redis`, `fluxer` (OAuth2) |
|
||||||
| `logging` | object | — | Per-category log toggle (see config example) |
|
| `dashboardUrl` | string | — | URL the dashboard is accessible from |
|
||||||
| `timers` | object | — | Timing values for inactivity, recovery, etc. |
|
| `sessionSecret` | string | — | Secret for Express.js session middleware |
|
||||||
| `cache` | object | — | Guild and member cache limits |
|
| `logging` | object | — | Per-category log toggle (`enabled` + 12 sub-categories, see config example) |
|
||||||
|
| `timers` | object | — | Timing values for inactivity, recovery, rejoin, etc. (14 sub-keys) |
|
||||||
|
| `cache` | object | — | Guild and member cache (`guilds.enabled`, `guilds.max`, `members.enabled`, `members.max`) |
|
||||||
| `radio` | array | `[]` | Custom radio station definitions |
|
| `radio` | array | `[]` | Custom radio station definitions |
|
||||||
| `ssl` | object | — | SSL certificate paths and HTTPS toggle |
|
| `ssl` | object | — | SSL certificate paths (`private`, `cert`), `useSSL`, `httpPort` |
|
||||||
|
| `presenceInterval` | number | — | Interval in ms for rotating bot presence status |
|
||||||
|
| `presenceContents` | string[] | `[]` | Presence status messages to cycle through |
|
||||||
|
| `fluxer.js` | object | — | Fluxer.js REST options (`timeout`, `retries`) |
|
||||||
|
| `fluxer-api` | object | — | Fluxer API endpoint configuration |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -292,11 +284,13 @@ fluxer/
|
|||||||
├── package.json
|
├── package.json
|
||||||
├── commands/ # Command modules (one file per command)
|
├── commands/ # Command modules (one file per command)
|
||||||
│ ├── play.mjs # Play a track or playlist
|
│ ├── play.mjs # Play a track or playlist
|
||||||
│ ├── player.mjs # Interactive emoji control panel
|
│ ├── player.mjs # Interactive emoji control panel with live progress
|
||||||
│ ├── settings.mjs # Per-guild settings management
|
│ ├── settings.mjs # Per-guild settings management (prefix, 247, volume, etc.)
|
||||||
│ ├── lyrics.mjs # Genius lyrics fetcher
|
│ ├── lyrics.mjs # Synced lyrics from NodeLink
|
||||||
│ ├── filter.mjs # Audio filter controls
|
│ ├── filter.mjs # Audio filter controls
|
||||||
│ ├── radio.mjs # Radio station management
|
│ ├── radio.mjs # Radio station management
|
||||||
|
│ ├── debug.mjs # Voice connection debugger (owner only, paginated)
|
||||||
|
│ ├── stats.mjs # Bot stats with live player count
|
||||||
│ └── ... # All other commands
|
│ └── ... # All other commands
|
||||||
├── src/
|
├── src/
|
||||||
│ ├── CommandHandler.mjs # Command loader, prefix manager, registry
|
│ ├── CommandHandler.mjs # Command loader, prefix manager, registry
|
||||||
@@ -313,17 +307,20 @@ fluxer/
|
|||||||
│ ├── constants/
|
│ ├── constants/
|
||||||
│ │ ├── Logger.mjs # Structured logger with per-category control
|
│ │ ├── Logger.mjs # Structured logger with per-category control
|
||||||
│ │ ├── Locale.mjs # i18n translation engine
|
│ │ ├── Locale.mjs # i18n translation engine
|
||||||
|
│ │ ├── Helpers247.mjs # 24/7 mode helper utilities
|
||||||
│ │ ├── providers.mjs # Audio source provider definitions
|
│ │ ├── providers.mjs # Audio source provider definitions
|
||||||
│ │ └── audio/
|
│ │ └── audio/
|
||||||
│ │ ├── StreamMerger.mjs # Audio stream merging utilities
|
│ │ ├── StreamMerger.mjs # Audio stream merging utilities
|
||||||
│ │ └── Tuna.mjs # Audio filter/effect processing
|
│ │ └── Tuna.mjs # Audio filter/effect processing
|
||||||
│ └── dashboard/
|
│ └── dashboard/
|
||||||
│ ├── Dashboard.mjs # Web dashboard server (Express + WebSocket)
|
│ ├── Dashboard.mjs # Web dashboard server (Express + WebSocket)
|
||||||
|
│ ├── DatabaseManager.mjs # Dashboard database query manager
|
||||||
│ └── RedisHandler.mjs # Redis session and pub/sub handler
|
│ └── RedisHandler.mjs # Redis session and pub/sub handler
|
||||||
├── settings/
|
├── settings/
|
||||||
│ ├── Settings.mjs # Abstract SettingsManager base class
|
│ ├── Settings.mjs # Abstract SettingsManager base class
|
||||||
│ ├── migrate.mjs # Legacy-to-remote settings migration script
|
│ ├── migrate.mjs # Legacy-to-remote settings migration script
|
||||||
│ └── runnables.mjs # Runnable task definitions
|
│ ├── runnables.mjs # Runnable task definitions
|
||||||
|
│ └── README.md # Settings system documentation
|
||||||
└── storage/
|
└── storage/
|
||||||
├── defaults.json # Default per-guild settings template
|
├── defaults.json # Default per-guild settings template
|
||||||
├── modules.json # Plugin module registry
|
├── modules.json # Plugin module registry
|
||||||
|
|||||||
Reference in new issue
Block a user