feat(leave): add optional channel argument to /leave command

- %leave now accepts an optional `channel` option; defaults to the
  user's current voice channel when omitted
- Updated locale strings to describe the new behaviour and provide
  clearer error messages (noVoiceChannel, specifyChannel, noPlayerInChannel)

fix(PlayerManager): improve voice-state resolution after reboot

- Added VoiceManager.voiceStates as a fallback lookup when
  getVoiceChannelId() returns null on startup
- Multi-player guilds now check LiveKit remote participants to
  determine which channel a user is actually in
- Filter out destroyed players when resolving guild player list

fix(PlayerManager): deduplicate Last.fm scrobble timers

- Added _pendingScrobbleTimers map to prevent duplicate scrobbles
  when startplay fires multiple times for the same channel
- Timers are now properly cleared on song skip and player stop

fix(RecoveryManager): restore textChannel after reboot for 24/7 mode

- Spawned players after reboot now resolve an announcement channel
  from server settings or the first available text channel, so song
  announcements aren't silently dropped

fix(Player): remove unused worker semaphore and dead media-player code

- Removed _workerSemaphore / _workerQueue / _workerPool semaphore logic
- Removed no-op _setupMediaPlayerMonitoring and _cleanupMediaPlayer methods
- Removed unused spotifyConfig field

fix(CommandHandler): skip Flag instances during option processing
This commit is contained in:
NoLogicAlan committed 2026-05-12 19:01:03 +03:00
1 parent 7a4009f5c3
commit 9cfa8e2e6c
10 files changed
+188 -100

No files matched your search

+4 -2
View File
@@ -32,7 +32,7 @@
"forceleave": "اجعل Remix يغادر قناة حتى لو لم تكن فيها.",
"invite": "احصل على رابط دعوة Remix وخادم الدعم.",
"join": "اجعل البوت ينضم إلى قناتك الصوتية، أو حدد قناة معينة.",
"leave": "اجعل البوت يغادر قناتك الصوتية الحالية.",
"leave": "اجعل البوت يغادر قناة صوتية. حدد قناة أو اتركها فارغة للقناة الحالية.",
"list": "اعرض قائمة الأغاني في قائمة انتظار قناتك الصوتية الحالية.",
"loop": "تفعيل/تعطيل تكرار قائمة الانتظار/الأغنية.",
"lyrics": "عرض كلمات الأغنية المتزامنة من NodeLink.",
@@ -241,10 +241,12 @@
"voiceChannelUnknown": "قناة صوتية غير معروفة"
},
"leave": {
"noVoiceChannel": "⚠️ يرجى الانضمام إلى قناة صوتية أولاً.",
"noVoiceChannel": "⚠️ يرجى الانضمام إلى قناة صوتية أولاً، أو حدد واحدة: `{{prefix}}leave <#channel>`",
"notInVoice": "أنا لست في قناة صوتية.",
"joinChannel": "⚠️ يرجى الانضمام إلى {{channel}} لاستخدام هذا الأمر.",
"multipleChannels": "⚠️ أنا أعزف في قنوات متعددة! يرجى الانضمام إلى إحداها:\n{{channels}}",
"specifyChannel": "⚠️ أنت لست في قناة صوتية. أنا أعزف في:\n{{channels}}\n\nاستخدم `{{prefix}}leave <#channel>` لمغادرة قناة محددة.",
"noPlayerInChannel": "⚠️ أنا لا أعزف في <#{{channel}}>. أنا في:\n{{channels}}",
"playerNotInit": "المشغّل غير مهيأ.",
"leftRejoin247": "✅ تم المغادرة بنجاح — سأعيد الانضمام إلى <#{{channel}}> خلال 5 ثوانٍ.\nلتعطيل وضع 24/7 بشكل دائم، استخدم `%247 off`.",
"left247On": "✅ تم المغادرة بنجاح.\nℹ️ وضع 24/7 **مفعّل** — لن يعود البوت تلقائياً. استخدم `%play` لإعادته، أو `%247 off` لتعطيله بالكامل."