mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
Full rework and bugfix pass across the fluxer codebase to resolve multiple runtime crashes that prevented the bot from starting and loading guild settings correctly. Export/Import Fixes: - Added re-export of SettingsManager from settings/Settings.mjs into src/Settings.mjs to resolve missing named export error that crashed the bot on startup (affected CommandHandler, PlayerManager, and migrate.mjs) - Verified all 70+ import/export chains across the entire project JSON.parse Safety (mysql2 JSON column handling): - src/Settings.mjs — added typeof guard before JSON.parse on RemoteSettingsManager.load() since mysql2 returns JSON columns as already-parsed objects, causing "[object Object]" SyntaxError - settings/Settings.mjs — same typeof guard applied - src/GatewayHandler.mjs — same typeof guard applied Migrate Script Fix: - settings/migrate.mjs — replaced abstract SettingsManager usage with concrete RemoteSettingsManager (which actually has the `guilds` property required for migration logic) Dashboard Fix: - src/dashboard/Dashboard.mjs — added missing reply() method to fakeMsg object so PlayerManager.initPlayer() doesn't crash when a user joins voice through the web dashboard Files changed (13): - src/Settings.mjs - settings/Settings.mjs - src/GatewayHandler.mjs - settings/migrate.mjs - src/dashboard/Dashboard.mjs - src/CommandHandler.mjs - src/PlayerManager.mjs - src/MoonlinkManager.mjs - src/Player.mjs - src/RecoveryManager.mjs - src/constants/audio/StreamMerger.mjs - src/constants/audio/Tuna.mjs - commands/remove.mjs
WIP Web Dashboard for Remix
Control Remix through a web interface and set server settings and similar.
Installation instructions will follow soon™️
Setup
- Create a mysql server with the following table:
CREATE TABLE `ksiTokens` (
`user` varchar(26) NOT NULL,
`id` varchar(50) NOT NULL,
`token` varchar(70) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,
`createdAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
CREATE TABLE `logins` (
`user` text NOT NULL,
`id` varchar(50) NOT NULL,
`token` varchar(70) NOT NULL,
`verified` tinyint(1) NOT NULL,
`createdAt` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;
- Fill out the connection details in
config.jsonin the remix root directory (Seeconfig.example.json) - SSL setup:
- Create a certificate. For example using Let's Encrypt
- Find the path to your private key and certificate pem files. Certbot uses
/etc/letsencrypt/live/remix.fairuse.org/privkey.pemfor the private key and/etc/letsencrypt/live/remix.fairuse.org/fullchain.pemfor the certificate file. Fill in the paths in the config file - set
useSSLinconfig.jsontotrue - Make sure to configure the ports correctly. HTTPS connects to port
443so make sure to setwebPortaccordingly.
Credits for Website design:
- NoLogicAlan
- ophx
- ShadowLp174
- Fantic