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": "Faça o Remix sair de um canal mesmo que você não esteja nele.",
"invite": "Obtenha o link de convite do Remix e do servidor de suporte.",
"join": "Faça o bot entrar no seu canal de voz ou especifique um.",
"leave": "Faça o bot sair do seu canal de voz atual.",
"leave": "Faça o bot sair de um canal de voz. Especifique um canal ou deixe em branco para o atual.",
"list": "Liste as músicas na fila do seu canal de voz atual.",
"loop": "Ative/desative o loop da fila/música.",
"lyrics": "Exiba letras sincronizadas do NodeLink.",
@@ -241,10 +241,12 @@
"voiceChannelUnknown": "canal de voz desconhecido"
},
"leave": {
"noVoiceChannel": "⚠️ Por favor, entre em um canal de voz primeiro.",
"noVoiceChannel": "⚠️ Por favor, entre em um canal de voz primeiro ou especifique um: `{{prefix}}leave <#channel>`",
"notInVoice": "Não estou em um canal de voz.",
"joinChannel": "⚠️ Por favor, entre em {{channel}} para usar este comando.",
"multipleChannels": "⚠️ Estou tocando em vários canais! Por favor, entre em um deles:\n{{channels}}",
"specifyChannel": "⚠️ Você não está em um canal de voz. Estou tocando em:\n{{channels}}\n\nUse `{{prefix}}leave <#channel>` para sair de um canal específico.",
"noPlayerInChannel": "⚠️ Não estou tocando em <#{{channel}}>. Estou em:\n{{channels}}",
"playerNotInit": "Player não inicializado.",
"leftRejoin247": "✅ Sai com sucesso — reentrando em <#{{channel}}> em 5 segundos.\nPara desativar o modo 24/7 permanentemente, use `%247 off`.",
"left247On": "✅ Sai com sucesso.\nℹ️ O modo 24/7 está **ativo** — o bot não voltará automaticamente. Use `%play` para trazê-lo de volta ou `%247 off` para desativar completamente."