Commit Graph
100 Commits
Author SHA1 Message Date
NoLogicAlan e11fca151c no comment still working on it 2026-08-28 23:51:20 +03:00
NoLogicAlan cea0014e18 we need this 2026-08-23 03:40:54 +03:00
NoLogicAlan 5ff380f0c9 why this 2026-08-23 03:37:43 +03:00
NoLogicAlan e7b706323b and this 2026-08-23 03:10:32 +03:00
NoLogicAlan b597964b76 idk 2026-08-19 02:43:34 +03:00
NoLogicAlan 42011a7e70 idk 2026-08-18 11:30:45 +03:00
NoLogicAlan 8974fd34df idk 2026-08-18 11:24:20 +03:00
NoLogicAlan f3051e0c1d Fix audio teardown during track skips
- Unpublish old LiveKit audio tracks before starting the next MediaPlayer
- Use track SID when calling rtc-node unpublishTrack to avoid FFI panics
- Close local audio track/source during teardown
- Suppress expected FFmpeg SIGKILL errors from intentional skips/stops
- Reuse shared media teardown path for next-track transitions
2026-08-15 11:48:16 +03:00
NoLogicAlan 4e8fa8554e testing 2026-08-14 12:33:20 +03:00
NoLogicAlan 841042ec4d testing 2026-08-14 02:07:19 +03:00
NoLogicAlan 50ac37de13 fix: correct client cache config, remove dead intents, clean up comments & JSDoc 2026-08-11 03:22:58 +03:00
NoLogicAlan 53a5016702 test 2026-08-11 02:43:05 +03:00
NoLogicAlan 349cd26729 we are fluxerjs 2.2.0 :P 2026-08-11 02:38:03 +03:00
NoLogicAlan d667457881 fix(player): detect early stream errors and report them instead of silently advancing 2026-06-25 16:15:10 +03:00
NoLogicAlan 3415d91090 test 2026-06-23 02:41:19 +03:00
NoLogicAlan cea77295ec fix(player): fall back to loadstream when trackstream returns 403 2026-06-22 22:02:28 +03:00
NoLogicAlan 9262b31b25 perf: reduce alone-check 2026-06-22 21:43:57 +03:00
NoLogicAlan 4cf6952704 perf(player): use trackstream instead of loadstream for normal playback 2026-06-22 21:30:21 +03:00
NoLogicAlan 771a4a0c50 perf(player): add -re flag to FFmpeg to prevent RAM buildup on long songs 2026-06-22 21:20:11 +03:00
NoLogicAlan 6f2797c0ee fix(player): _seeking flag leak blocking auto-advance after seek 2026-06-22 17:11:12 +03:00
NoLogicAlan 390c4b4e7d oops 2026-06-21 22:52:40 +03:00
NoLogicAlan a08f2b0792 fix(player): schedule 24/7 rejoin directly from disconnect handler 2026-06-21 22:49:57 +03:00
NoLogicAlan 0d92ba04fa refactor(debug): rewrite for correctness, state preservation, readability 2026-06-21 21:40:07 +03:00
NoLogicAlan 23505457fa fix(gateway): auto-rejoin voice on WS-drop-induced disconnects
Previously, only 24/7-auto channels would auto-rejoin after a voice
disconnect. Every other channel would emit autoleave and the bot
would leave voice — even when the disconnect was caused by a transient
WS reconnect, not a user action.

Now the bot tracks when Events.Ready last fires (initial login + every
reconnect). When a voice disconnect is detected within 30s of a Ready
event, it's treated as WS-induced and the bot auto-rejoins the channel
using the same cleanup + schedule rejoin logic as 24/7-auto mode,
regardless of the channel's 24/7 setting.

User-initiated leaves (not preceded by a WS reconnect) still emit
autoleave as before.
2026-06-21 21:24:03 +03:00
NoLogicAlan 799b527467 feat: add Docker support — Dockerfile, docker-compose, entrypoint 2026-06-21 21:14:36 +03:00
NoLogicAlan 4a436d6044 fix(worker): parse "Artist - Title" separator in search scoring
When a user types "Everything Yes - Too Late", the scoring system was
treating the entire string as the title and leaving the artist empty.
This meant the +20 artist-match bonus was never applied, and the -6
title-mismatch penalty hit the correct song (whose title is just "Too
Late", not "Everything Yes - Too Late").

_buildRequestContext now detects the " - " / " – " / " — " separator
in the query when no explicit trackMeta is provided, and splits into
artist + title for scoring. This makes "Artist - Title" queries match
the correct track instead of falling back to fuzzy title-only matching.
2026-06-21 15:40:47 +03:00
NoLogicAlan 49447dc37b chore: bump @fluxerjs/core + voice to v1.4.0, add allowedMentions suppression
- Bump SDK deps to ^1.4.0 (ws security fix, official { ping: false }
  support, allowedMentions on channel.send)
- Add allowedMentions: { parse: [] } to announcement channel.send()
  calls in PlayerManager, index._spawnPlayer, and GatewayHandler
  permission warnings — prevents accidental pings from embed
  descriptions containing user mentions
- Fix unhandled rejection in CommandLoader error-reply: the fallback
  data.message.reply() wasn't caught, so a network failure during the
  error-reply itself would crash. Now wrapped in
  Promise.resolve(...).catch(...)
2026-06-20 22:49:56 +03:00
NoLogicAlan 20813bd1ff hot fix 2026-06-20 18:44:55 +03:00
NoLogicAlan fbf725d29f refactor: codebase cleanup + critical player state bug fixes 2026-06-20 17:36:29 +03:00
NoLogicAlan 82aa296fbc some fix /testing 2026-06-17 16:20:15 +03:00
NoLogicAlan dbe1c46dc5 hotfix /testing 2026-06-17 03:26:46 +03:00
NoLogicAlan b7252fccaf little changes 2026-06-16 22:34:11 +03:00
NoLogicAlan 862f326996 hotfix ( idk ) 2026-06-16 04:24:47 +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 9efdb216af fixed 2026-06-02 18:17:31 +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 23d0dbc522 fixed 2026-05-28 18:50:29 +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 5a29545d41 testing 2026-05-28 17:40:18 +03:00
NoLogicAlan 9e363c9ccf testing 2026-05-28 17:10:51 +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 fe123731d1 testing 2026-05-24 18:31:11 +03:00
NoLogicAlan f86f0c5f8b testing 2026-05-24 17:31:20 +03:00
NoLogicAlan 27d7cc7c94 added tr lang (ai translate) 2026-05-24 16:35:13 +03:00
NoLogicAlan 52d3fbc9e0 hotfix 2026-05-24 16:18:29 +03:00
NoLogicAlan 1adf9b97fa hotfix 2026-05-23 23:52:56 +03:00
NoLogicAlan e84851d29a new 2026-05-23 18:54:25 +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 80a5c37bbf no more long text 2026-05-23 17:47:47 +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 10f8a1d91e missing part 2026-05-22 15:56:14 +03:00
NoLogicAlan 489c1458b1 fixed 2026-05-21 19:05:52 +03:00
NoLogicAlan 3d8b5b3ae6 testing 2026-05-21 18:58:57 +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
NoLogicAlan 0f2ee99f1e Add seek validation, autoplay system, progress bar & codebase cleanup
- Add seek duration validation — seeks beyond track length are rejected
  with clear error showing max allowed position
- Add autoplay system with Last.fm similar tracks + YouTube search
  fallback — automatically queues similar tracks when queue ends
- Add live progress bar to now playing with elapsed/total time display
- Add robust ffmpeg cleanup to prevent race conditions during
  seek/skip/filter operations
- Add proper queue advancement after seek so bot stays in voice
- Add queueEnd event emission on skip/skipTo for autoplay trigger
- Add _lastPlayedTrack preservation for autoplay recommendations
2026-05-21 02:04:05 +03:00
NoLogicAlan bc1fe82919 cleannnn 2026-05-20 22:32:39 +03:00
NoLogicAlan 05fb38aabd fix: use correct FluxerJS permissions API (permissionsIn) for voice join checks 2026-05-20 22:18:43 +03:00
NoLogicAlan dc0184b0c0 feat: add Last.fm URL support and improve track search accuracy
- Add Last.fm URL parsing to %play command (e.g. %play https://last.fm/music/Drake/_/Make+Them+Cry)
- Add freeform Last.fm search via %play lastfm:<query> (e.g. %play lastfm:soda pop)
- Pass trackMeta through Player.play() for accurate scrobbling from Last.fm results
- Improve searchTrack() scoring to penalize non-song results (lyric videos, official videos, covers, remixes)
- Penalize label/production company artists (e.g. "Sony Pictures Animation") in search results
- Penalize quoted track names (e.g. "Soda Pop" Official Lyric Video)
- Prefer clean /music/Artist/_/Track URL format in Last.fm search ranking
2026-05-19 18:40:49 +03:00
NoLogicAlan 4218c9f21a ... 2026-05-18 22:58:34 +03:00
NoLogicAlan eaaa1f6131 feat(lastfm): restrict non-lastfm providers to top category only 2026-05-18 22:57:52 +03:00
NoLogicAlan 2292a74274 at lest not glitching 2026-05-18 22:21:05 +03:00
NoLogicAlan b5a94a4f60 hotfix - somechanges 2026-05-18 21:50:48 +03:00
NoLogicAlan f6bc1db447 lol rollbackkk 2026-05-18 02:09:48 +03:00
NoLogicAlan 3c76573c62 testing skip 2026-05-18 02:08:41 +03:00
NoLogicAlan 0890a643be testing skip 2026-05-18 02:00:56 +03:00
NoLogicAlan 5050ce237c fixed 2026-05-18 01:58:24 +03:00
NoLogicAlan 299ee6e692 fixed 2026-05-18 01:50:06 +03:00
NoLogicAlan 092dbc15a1 fixed 2026-05-18 01:47:19 +03:00
NoLogicAlan e74edfd95d fixed 2026-05-18 01:43:08 +03:00
NoLogicAlan 722bda62c3 fixed 2026-05-18 01:42:59 +03:00
NoLogicAlan 288676937e hotfix spam end 2026-05-18 00:35:59 +03:00
NoLogicAlan 3a8c85becf hotfix 247 2026-05-17 18:48:44 +03:00
NoLogicAlan a124236f9d fixed 2026-05-17 17:41:52 +03:00
NoLogicAlan 0d58b5441c fixed 2026-05-17 17:28:25 +03:00
NoLogicAlan bb440c7107 no idea 2026-05-17 17:13:42 +03:00
NoLogicAlan 733e14190a hotfix 2026-05-17 01:40:35 +03:00
NoLogicAlan 98fe502b56 hotfix 2026-05-17 00:41:44 +03:00
NoLogicAlan 117156c1b2 ugh 2026-05-17 00:29:27 +03:00
NoLogicAlan f7ed8843e7 ugh 2026-05-17 00:26:13 +03:00
NoLogicAlan 0de762eb03 ugh 2026-05-17 00:22:08 +03:00
NoLogicAlan 81669296dc ugh 2026-05-17 00:19:27 +03:00
NoLogicAlan d24ae4070f fluxerlist vote api 2026-05-17 00:15:39 +03:00
NoLogicAlan 726277324e done 2026-05-16 23:40:45 +03:00
NoLogicAlan 685c8a9215 hotfix 2026-05-16 23:32:23 +03:00
NoLogicAlan db0ca569ee hotfix 2026-05-16 23:20:05 +03:00
NoLogicAlan e966b6ce20 hotfix 2026-05-16 22:03:22 +03:00
NoLogicAlan 28fc86103c hotfix 2026-05-16 20:50:21 +03:00