Commit Graph
20 Commits
Author SHA1 Message Date
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 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 bc1fe82919 cleannnn 2026-05-20 22:32:39 +03:00
NoLogicAlan 6fa8f3b540 lots of changes 2026-05-16 20:30:56 +03:00
NoLogicAlan 4d9ade53c8 auto-rejoin 24/7 channels after a reboot/crash 2026-05-14 20:19:58 +03:00
NoLogicAlan 5f33ee231d ok that alot 2026-05-11 22:24:08 +03:00
NoLogicAlan 5183f41862 feat: voice joins with FluxerRevoice adapter 2026-05-11 20:57:19 +03:00
NoLogicAlan 3f5c395986 some fix 2026-05-09 16:40:25 +03:00
NoLogicAlan 6060e6d318 feat: add i18n locale system and fix pagination/help bugs
- Add Locale class (src/constants/Locale.mjs) with per-guild translation
  support and settings-manager binding
- Wire locale into CommandHandler, MessageHandler, Player, PlayerManager,
  and index.mjs via setLocale() / t() helpers
- Replace all hardcoded English strings (help pages, errors, now-playing,
  permission messages, session-closed footers) with locale key lookups
- Fix: %help triggering "Unknown command" — replyHandler intercept now
  uses case-insensitive check for "unknown command"
- Fix: TypeError crash in closeSession when embed has no footer — guard
  with `if (!footer) footer = { text: "" }` before appending
- Fix: media player teardown now calls destroy() and nulls the instance
  instead of relying on _stopMediaPlayer(), preventing stale state
- Refactor: reply() and send() auto-wrap plain strings in embeds,
  matching old replyEmbed/sendEmbed behaviour
- Refactor: permission errors and invalid-flag errors use t() lookups
- Add top-level t(message, key, data) helper on the bot instance for
  command files to resolve guild locale without manual guildId plumbing
2026-05-06 01:07:03 +03:00
NoLogicAlan 85f11fe34b fix: migrate all commands & src to @fluxerjs native API
- Replace replyEmbed/sendEmbed/editEmbed with reply/send/edit
  across all 33 command files and 5 src/ files
- Remove unnecessary .toJSON() on EmbedBuilder (Fluxer auto-converts)
- Fix voice channel type checks: channel_type === "VoiceChannel" → type === 2
- Add missing edit() and send() methods to Message/ChannelContext wrappers
- Fix filter command: reactions now update per page on navigation

Closes channel cache crash (guild.channels.cache.keys undefined)
2026-05-05 20:09:25 +03:00
NoLogicAlan 29c129971a cleaning 2026-05-04 17:25:39 +03:00
NoLogicAlan 3d66043864 cleaning 2026-05-04 16:25:22 +03:00
NoLogicAlan f402237ad3 rollback yes 2026-04-17 00:01:52 +03:00
NoLogicAlan 73c290e59c fix(voice): resolve voice channel detection after bot reboot
- Move voice state population outside settings conditional in GuildCreate
  (now runs on every gateway resume, not just new guild joins)
- Make checkVoiceChannels() async with Fluxer API fallback
  (fetches member voice state directly when cache is empty after reboot)
- Fix PlayerManager client reference passing
- Update all callers to properly await checkVoiceChannels()
- Fix leave command to work without requiring user in voice channel

Fixes issue where bot couldn't detect users already in voice channels
immediately after a reboot due to empty voice state cache.
2026-04-16 23:41:25 +03:00
NoLogicAlan 910a244120 test: some cool stuff from shadowsss 2026-04-16 16:06:24 +03:00
NoLogicAlan 2820cc881c initial push to remix-bot/fluxer 2026-04-14 02:23:18 +03:00