Commit Graph
178 Commits
Author SHA1 Message Date
NoLogicAlan f1c87d410d hotfix 2026-09-15 03:06:23 +03:00
NoLogicAlan cc0b438ef6 added: Vote-to-skip 2026-09-13 01:21:36 +03:00
NoLogicAlan 7f1d076902 ... 2026-09-11 03:57:06 +03:00
anupamme ed89c45b32 fix: V-002 security vulnerability
Automated security fix generated by OrbisAI Security
2026-09-11 00:31:49 +00:00
NoLogicAlan ea05777390 ... 2026-09-11 02:34:49 +03:00
NoLogicAlan 00df253588 ... 2026-09-11 02:05:31 +03:00
NoLogicAlan 85c4bf4e8d ... 2026-09-11 01:47:38 +03:00
NoLogicAlan 3ef54117bb bye 2026-09-10 03:02:51 +03:00
NoLogicAlan a188fa0b62 FIXED 2026-09-10 01:50:48 +03:00
NoLogicAlan 253d11cd57 Remix — the complete rewrite
Upgrades the bot from fluxerjs 2.2 to 3.0 and restructures everything
into a layered architecture (~28K lines):

Dependencies:
- @fluxerjs/core, util, voice: ^2.2.0 -> ^3.0.0 (typed events,
  PartialMessage payloads, camelCase API)
- @fluxerjs/sharding ^3.0.0 added — built-in sharding mode
  (shard.mjs, one process per shard)
- @discordjs/opus dropped — opusscript + prism-media cover encoding

Architecture:
- commands: every command split into submodules (player, lastfm,
  settings, debug) with a shared CommandBuilder/Loader/Handler core
- ui: embeds, paginators, help command, permission checks
- voice: gateway event routing, rejoin/247 boot recovery, state resolver
- music: player split into Queue/Search/Playback/Display mixins,
  stream pipeline + WebM/Opus muxer (no FFmpeg needed)
- dashboard: Redis pub/sub, RPC handlers, serializers
- db: MySQL manager + per-guild settings
- services: LastFm manager split into focused mixins
- utils: sharding, 24/7 helpers, API client

Runtime fixes over v2:
- Redis v5 reconnect: capped numeric backoff (0.5s ramp to 15s),
  never exhausts, auto-recovers when the server comes back
- Redis main/subscriber clients connect in parallel; clean shutdown
- Logger storm guard: identical error/warn lines deduped in a 60s window
- self-deaf fix on voice join
- config example uses redis://127.0.0.1 (avoids IPv6 ENETUNREACH)

Housekeeping: dead code removed (Tuna.mjs + follow-redirects dep),
.gitignore added (config.json, .env, node_modules, runtime state).
2026-09-09 02:04:33 +03:00
NoLogicAlan 0f085a6ae4 ...little changes 2026-09-04 20:40:04 +03:00
NoLogicAlan 7bc286776f ...little changes 2026-09-04 19:03:10 +03:00
NoLogicAlan 74fa8da4eb ...test 2026-09-04 03:28:20 +03:00
NoLogicAlan 9e67bcce25 ...test 2026-09-04 03:07:07 +03:00
NoLogicAlan fa05407166 ...test 2026-09-04 02:55:07 +03:00
NoLogicAlan fe5f0e8d8c ...test 2026-09-04 02:47:44 +03:00
NoLogicAlan 6ba7b33a05 ... 2026-09-04 02:42:54 +03:00
NoLogicAlan e529114c31 ... 2026-09-02 01:45:45 +03:00
NoLogicAlan 0f0f6ac090 ... 2026-09-02 01:07:03 +03:00
NoLogicAlan 9d449c7a14 ... 2026-09-02 01:02:24 +03:00
NoLogicAlan e435af7eb2 ... 2026-09-02 00:56:14 +03:00
NoLogicAlan 715f2afb61 fixed 2026-09-01 01:00:46 +03:00
NoLogicAlan a9d6fda60b fix: playback and MP3 radio without FFmpeg 2026-08-31 04:01:46 +03:00
NoLogicAlan e11fca151c no comment still working on it 2026-08-28 23:51:20 +03:00
NoLogicAlan b597964b76 idk 2026-08-19 02:43:34 +03:00
NoLogicAlan 841042ec4d testing 2026-08-14 02:07:19 +03:00
NoLogicAlan 390c4b4e7d oops 2026-06-21 22:52:40 +03:00
NoLogicAlan 0d92ba04fa refactor(debug): rewrite for correctness, state preservation, readability 2026-06-21 21:40:07 +03:00
NoLogicAlan fbf725d29f refactor: codebase cleanup + critical player state bug fixes 2026-06-20 17:36:29 +03:00
NoLogicAlan b7252fccaf little changes 2026-06-16 22:34:11 +03:00
NoLogicAlan 092268281a refactor: centralize shared utilities, fix voice intent, and improve error visibility
- extract `cleanId()` to `Utils.mjs` and remove 97+ inline `String(x).replace(/\D/g, "")` duplicates

- add `VoiceStateResolver.mjs` with `iterateVoiceStates`, `hasHumansInChannel`, `getChannelsWithHumans` — eliminates 12+ duplicated voice-state-iteration blocks across `Player`, `PlayerManager`, `GatewayHandler`, `Dashboard`

- add `UI.mjs` for shared color, emoji, and timeout constants

- move `parseInlineProvider` to `providers.mjs`, `getMessageGuildId` to `MessageHandler.mjs`

- fix `VoiceStateCache.removeGuild` and `TrackOptionsManager` cache deletion mutating Maps during iteration

- fix `checkVoiceChannels` now async returning `{channelId, alreadyInVoice, hasHumans}` — all callers updated

- fix `FluxerRevoice` global `console.log` monkey-patch replaced with scoped `withSuppressedLiveKitLogs(fn)`

- fix `Player._get247Mode()` settings resolution chain

- fix `runnables.mjs` validators were no-ops

- promote `Player` magic numbers to named static constants

- replace all silent `catch (_) {}` with `logger.warn()` throughout

- remove unused deps: `express`, `genius-lyrics`, `ws`

- add `@file` JSDoc headers to all modules
2026-06-15 16:56:10 +03:00
NoLogicAlan 0d3035b093 fix: leave command no longer disconnects all voice channels in guild 2026-06-04 18:21:50 +03:00
NoLogicAlan a303d7782a new stuff new life 2026-06-04 17:50:25 +03:00
NoLogicAlan 8f0c0db2f4 fixed 2026-05-31 23:45:33 +03:00
NoLogicAlan 441eb4406e ahm 2026-05-31 16:58:42 +03:00
NoLogicAlan ba479e4c04 refactor: centralize prefix resolution into CommandHandler
Replace all scattered prefix lookups across the codebase with a single
source of truth: CommandHandler.getPrefix(guildId).
2026-05-31 15:02:18 +03:00
NoLogicAlan 5359498d12 idk 2026-05-28 18:28:23 +03:00
NoLogicAlan 93ab04691c fixed 2026-05-28 18:13:53 +03:00
NoLogicAlan eeb27de9bb i18n: replace hardcoded strings with locale keys across all commands
- Add locale keys for gateway/MessageHandler permission error messages
- Add locale support to settings command (prettifySettingLabel now accepts t/guildId)
- Replace all hardcoded strings in player, search, seek, trackopt, vote, autoplay, debug, lastfm commands with this.t() calls
- Add new locale keys: command suggestions, vote descriptions, debug pagination, lastfm auth/link/profile/whoknows/leaderboard/playlists/artists strings
- Fix typos in en.json: broken backtick in alreadyLinked, extra $ in unlovedTrack artist template
- Add new locale key for command suggestion ("Did you mean...?")
- Remove "React to refresh" suffix from controls expired footer (now just uses locale key)
2026-05-25 20:47:58 +03:00
NoLogicAlan b581722c46 fix: resolve bugs in voice, filter, dashboard, and stats handling
- Fix filter command using stale track reference instead of current queue track

- Fix playnext null check before editing status message

- Fix join command using raw channel ID before cleaning it

- Fix GatewayHandler passing wrong isBot flag in voice state cache

- Fix Dashboard shared server filtering (was returning empty, now filters correctly)

- Fix avatar fallback using discriminator (deprecated) → use user ID instead

- Refactor Player.mjs: extract ConnectionState/LKRoomEvent to FluxerRevoice constants

- Refactor Player.mjs: replace local formatMsHelper with Utils.prettifyMS

- Add Logger.guild() method; use it in GatewayHandler instead of logger.info()

- Remove rbl-stats module from modules.json

- Remove unused empty event listeners in PlayerManager

- Remove unused CRITICAL_PERMISSIONS import from GatewayHandler
2026-05-25 19:22:20 +03:00
NoLogicAlan 58464e6862 rollback 2026-05-25 16:59:26 +03:00
NoLogicAlan 65e58414dc testing 2026-05-25 16:51:22 +03:00
NoLogicAlan 4addaf64ab fix 💀 2026-05-23 18:15:05 +03:00
NoLogicAlan 37cfed60c0 fix 2026-05-23 17:51:56 +03:00
NoLogicAlan 8103b9e526 fix 2026-05-23 17:30:22 +03:00
NoLogicAlan ecaf8c575e feat(lastfm): add comprehensive Last.fm integration & enabled toggle 2026-05-22 22:39:31 +03:00
NoLogicAlan 998040d33a fixing 2026-05-21 18:51:37 +03:00
NoLogicAlan 2ee4a0a86d fixing 2026-05-21 18:44:31 +03:00
NoLogicAlan 5ba24bf1df feat(player): named aliases for per-track trimming
Extend %trackopt with named aliases — users can now save multiple
trim points per track and switch between them on the fly. Only the
"default" alias auto-applies on playback; others require
%trackopt play <name>.

Idea by noisy EVE
2026-05-21 18:31:14 +03:00
NoLogicAlan 6bbaf49a94 feat(player): per-track custom start/end trimming
Allow users to save custom start and end points for any track.
Options persist in MySQL and auto-apply on playback — the player
seeks to the configured start time and skips when the end time is
reached. Supports pause/resume and manual seek with timer recalc.

Idea by noisy EVE
2026-05-21 17:43:48 +03:00