feat: comando /loop con modos off/track/queue#34
Merged
Conversation
- Nuevo comando /loop con opciones off, track, queue - Usa DefaultPlayer.set_loop() nativo de lavalink - Muestra estado del loop en /nowplaying
There was a problem hiding this comment.
Pull request overview
Este PR incorpora un nuevo comando /loop para controlar el modo de repetición (desactivado, pista o cola) en el cog de música, y actualiza /nowplaying para reflejar el estado de loop en el embed de “Estado”.
Changes:
- Se añade el comando de barra
/loopcon opcionesoff/track/queuepara ajustar el modo de repetición del reproductor Lavalink. - Se amplía
/nowplayingpara mostrar el modo de loop junto al estado de reproducción/en vivo.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1148
to
+1152
| loop_map = { | ||
| "off": (lavalink.DefaultPlayer.LOOP_NONE, "Off", BOT_PRIMARY), | ||
| "track": (lavalink.DefaultPlayer.LOOP_SINGLE, "Track", BOT_SUCCESS), | ||
| "queue": (lavalink.DefaultPlayer.LOOP_QUEUE, "Queue", BOT_SUCCESS), | ||
| } |
| interaction, | ||
| self._build_embed( | ||
| interaction, | ||
| f"Loop: {label}", |
Comment on lines
+1505
to
+1506
| loop_label = {0: "", 1: " 🔂 Loop track", 2: " 🔁 Loop queue"}.get(player.loop, "") | ||
| status = ("En vivo" if track.is_stream else "En reproducción") + loop_label |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Esta solicitud de extracción agrega un nuevo comando de modo de bucle al icono de música, permitiendo a los usuarios configurar el modo de repetición de reproducción (desactivado, pista o cola) mediante un comando de barra inclinada. También actualiza el indicador de reproducción actual para mostrar el estado del bucle y brindar una mejor información al usuario.
Nuevo comando de modo de bucle:
/looppara configurar el modo de repetición (desactivado, pista o cola) de la reproducción de música, con descripciones claras y retroalimentación mediante códigos de color.Mejoras en la interfaz de usuario: