mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-01 14:38:48 +00:00
Merge branch 'main' into configurable-options
This commit is contained in:
commit
0b0c3c4326
41 files changed
+750
-739
No files matched your search
@@ -11,3 +11,4 @@
|
||||
/coverage
|
||||
/locales/resources.d.ts
|
||||
/prisma/dev.db
|
||||
/pnpm-lock.yaml
|
||||
@@ -92,6 +92,13 @@ This project is made possible by the contributions from the community and the us
|
||||
<sub style="font-size:14px"><b>tacheometry</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" style="word-wrap: break-word; width: 75.0; height: 75.0">
|
||||
<a href=https://github.com/pryzmian>
|
||||
<img src=https://avatars.githubusercontent.com/u/89826250?v=4 width="50;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Aaron Sandoval/>
|
||||
<br />
|
||||
<sub style="font-size:14px"><b>Aaron Sandoval</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" style="word-wrap: break-word; width: 75.0; height: 75.0">
|
||||
<a href=https://github.com/sloraris>
|
||||
<img src=https://avatars.githubusercontent.com/u/97694636?v=4 width="50;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Parker Owings/>
|
||||
@@ -101,9 +108,9 @@ This project is made possible by the contributions from the community and the us
|
||||
</td>
|
||||
<td align="center" style="word-wrap: break-word; width: 75.0; height: 75.0">
|
||||
<a href=https://github.com/twlite>
|
||||
<img src=https://avatars.githubusercontent.com/u/46562212?v=4 width="50;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Archaeopteryx/>
|
||||
<img src=https://avatars.githubusercontent.com/u/46562212?v=4 width="50;" style="border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px" alt=Twilight/>
|
||||
<br />
|
||||
<sub style="font-size:14px"><b>Archaeopteryx</b></sub>
|
||||
<sub style="font-size:14px"><b>Twilight</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center" style="word-wrap: break-word; width: 75.0; height: 75.0">
|
||||
|
||||
@@ -52,6 +52,7 @@ module.exports.presenceStatusOptions = {
|
||||
|
||||
// Configurations for visual embed messages.
|
||||
// Includes design elements like colors and custom emojis/symbols.
|
||||
// Also includes behavior options like button labels and player start messages.
|
||||
module.exports.embedOptions = {
|
||||
info: {
|
||||
fallbackThumbnailUrl:
|
||||
@@ -69,6 +70,9 @@ module.exports.embedOptions = {
|
||||
components: {
|
||||
showButtonLabels: true
|
||||
},
|
||||
behavior: {
|
||||
enablePlayerStartMessages: false,
|
||||
},
|
||||
icons: {
|
||||
logo: '🤖',
|
||||
beta: '`beta`',
|
||||
|
||||
+250
-260
@@ -15,468 +15,458 @@
|
||||
}
|
||||
},
|
||||
"trackHistoryEmpty": "{{icon}} **Oops!**\nParece que el historial de canciones está vacío, agrega algunas canciones usando el comando {{playCommand}}!",
|
||||
"trackPositionHigherThanHistoryLength_one": "",
|
||||
"trackPositionHigherThanHistoryLength_few": "",
|
||||
"trackPositionHigherThanHistoryLength_many": "",
|
||||
"trackReplayed": ""
|
||||
"trackPositionHigherThanHistoryLength_one": "{{icon}} **Oops!**\nSolo hay **1** canción en el historial de canciones. No puedes volver a la posición número **{{backPosition}}**\n\nPuedes ver el historial de canciones con el comando {{historyCommand}}.",
|
||||
"trackPositionHigherThanHistoryLength": "{{icon}} **Oops!**\nSolo hay **{{count}}** cancion(es) en el historial. No puedes retroceder a la canción **{{backPosition}}**.\n\nConsulta las canciones añadidas al historial con {{historyCommand}}.",
|
||||
"trackReplayed": "{{icon}} **Reproduciendo de nuevo la canción**\n{{track}}"
|
||||
},
|
||||
"filters": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "filtros",
|
||||
"description": "Alterna varios filtros de audio.",
|
||||
"options": {
|
||||
"type": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "tipo",
|
||||
"description": "Tipo de filtro de audio a utilizar.",
|
||||
"choices": {
|
||||
"ffmpeg": "",
|
||||
"biquad": "",
|
||||
"equalizer": "",
|
||||
"disable": ""
|
||||
"ffmpeg": "FFmpeg",
|
||||
"biquad": "Biquad",
|
||||
"equalizer": "Equalizador",
|
||||
"disable": "Deshabilitado"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"allFiltersDisabled": "",
|
||||
"disableAllFiltersButton": "",
|
||||
"nowUsingFilters": "",
|
||||
"selectFilterPlaceholder": "",
|
||||
"selectFilterPlaceholderMany": "",
|
||||
"toggleFilterInstructions": ""
|
||||
"allFiltersDisabled": "{{icon}} **Filtros desactivados**\nTodos los filtros han sido desactivados.",
|
||||
"disableAllFiltersButton": "Desactivar todos los filtros",
|
||||
"nowUsingFilters": "{{icon}} **Filtros activados**\nAhora usando estos filtros {{mode}}:",
|
||||
"selectFilterPlaceholder": "Seleccione un filtro del menú.",
|
||||
"selectFilterPlaceholderMany": "Seleccione uno o varios filtros.",
|
||||
"toggleFilterInstructions": "**Activa los filtros ({{provider}})**\nActiva o desactiva los filtros de audio para reproducir desde el menú."
|
||||
},
|
||||
"guilds": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "gremios",
|
||||
"description": "Mostrar el top 25 de gremios por número de miembros."
|
||||
},
|
||||
"topGuildsByMemberCount": "",
|
||||
"totalMembers": ""
|
||||
"topGuildsByMemberCount": "{{icon}} **Principales {{count}} servidores por cantidad de miembros ({{totalCount}} en total)**",
|
||||
"totalMembers": "**Total de miembros:** **`{{count}`**"
|
||||
},
|
||||
"help": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "ayuda",
|
||||
"description": "Mostrar la lista de comandos del bot."
|
||||
},
|
||||
"addBotButton": "",
|
||||
"listTitle": "",
|
||||
"supportServerButton": ""
|
||||
"addBotButton": "Añadir bot",
|
||||
"listTitle": "{{icon}} **Lista de comandos**",
|
||||
"supportServerButton": "Servidor de soporte"
|
||||
},
|
||||
"history": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "historial",
|
||||
"description": "Mostrar historial de canciones que se han reproducido.",
|
||||
"options": {
|
||||
"page": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "página",
|
||||
"description": "Número de página a mostrar para el historial."
|
||||
}
|
||||
}
|
||||
},
|
||||
"emptyHistory": "",
|
||||
"invalidPageNumber_one": "",
|
||||
"invalidPageNumber_few": "",
|
||||
"invalidPageNumber_many": "",
|
||||
"tracksInHistoryTitle": ""
|
||||
"emptyHistory": "El historial está vacío, ¡añade algunas pistas con {{playCommand}}!",
|
||||
"invalidPageNumber_one": "{{icon}} **Oops!**\nLa página **`{{page}}`** no es un número de página válido.\n\nSolo hay **`1`** página en el historial.",
|
||||
"invalidPageNumber": "{{icon}} **Oops!**\nLa página **`{{page}}`** no es un número de página válido.\n\nSolo hay un total de **`{{count}}`** página(s) en el historial.",
|
||||
"tracksInHistoryTitle": "{{icon}} **Canciones en el historial**"
|
||||
},
|
||||
"join": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "unirse",
|
||||
"description": "El bot se unirá al canal de voz si no está ya en uno."
|
||||
},
|
||||
"alreadyConnected": "",
|
||||
"couldNotJoin": "",
|
||||
"joinedChannel": ""
|
||||
"alreadyConnected": "{{icon}} **Oops!**\nYa estoy conectado al canal de voz {{channel}}.\n\nPara desconectarme del canal, utiliza el comando {{leaveCommand}}.",
|
||||
"couldNotJoin": "{{icon}} **Oops!**\nNo pude unirme al canal de voz, por favor, inténtalo de nuevo.",
|
||||
"joinedChannel": "{{icon}} **Conectado!**\nMe he conectado al canal de voz: {{channel}}\n\n¡Para agregar canciones, utiliza el comando {{playCommand}}!"
|
||||
},
|
||||
"leave": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "salir",
|
||||
"description": "Elimina la cola y quita el bot del canal de voz."
|
||||
},
|
||||
"leavingChannel": ""
|
||||
"leavingChannel": "{{icon}} Saliendo del canal\nSe ha limpiado la cola de reproducción y se ha abandonado el canal de voz.\n\n¡Para reproducir más música, utiliza el comando {{playCommand}}!"
|
||||
},
|
||||
"loop": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "bucle",
|
||||
"description": "Cambia el bucle de una pista, la cola entera o la reproducción automática.",
|
||||
"options": {
|
||||
"mode": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "modo",
|
||||
"description": "Modo bucle: Rastreo, cola, reproducción automática o deshabilitado.",
|
||||
"choices": {
|
||||
"0": "",
|
||||
"1": "",
|
||||
"2": "",
|
||||
"3": ""
|
||||
"0": "Apagado",
|
||||
"1": "Canción",
|
||||
"2": "Cola",
|
||||
"3": "Autoreproducción"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"alreadySet": "",
|
||||
"loopModeInformation": "",
|
||||
"modeChanged": "",
|
||||
"willAutoplay": "",
|
||||
"willNoLongerPlay": "",
|
||||
"willNowPlay": ""
|
||||
"alreadySet": "{{icon}} **Oops!**\nEl modo de repetición ya está configurado como **`{{mode}}`**.",
|
||||
"loopModeInformation": "{{icon}} **Modo actual de repetición**\nEl modo de repetición está actualmente configurado como **`{{mode}}`**.",
|
||||
"modeChanged": "{{icon}} **Modo de repetición cambiado**\nCambiando el modo de repetición de **`{{fromName}}`** a **`{{toName}}`**.",
|
||||
"willAutoplay": "Cuando la cola está vacía, ¡las pistas similares comenzarán a sonar!",
|
||||
"willNoLongerPlay": "¡El {{mode}} ya no jugará en repetir!",
|
||||
"willNowPlay": "¡El {{mode}} ahora se reproducirá en repetir!"
|
||||
},
|
||||
"lyrics": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "letras",
|
||||
"description": "Busca las letras de Genius en la pista actual o especificada.",
|
||||
"options": {
|
||||
"query": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "búsqueda",
|
||||
"description": "Búsqueda por texto o enlace."
|
||||
}
|
||||
}
|
||||
},
|
||||
"autocompleteSearchResult": "",
|
||||
"lyricsEmbed": "",
|
||||
"noLyricsFound": ""
|
||||
"autocompleteSearchResult": "{{title}} [Artista: {{artist}}]",
|
||||
"lyricsEmbed": "{{icon}} **Mostrando letra**\n**Canción: [{{trackTitle}}]({{trackUrl}})**\n**Artista: [{{artistName}}]({{artistUrl}})**",
|
||||
"noLyricsFound": "{{icon}} **No se encontró la letra**\nNo se encontró la letra en Genius para la cancion**{{query}}**."
|
||||
},
|
||||
"move": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "mover",
|
||||
"description": "Mueve una canción a una posición específica en la cola.",
|
||||
"options": {
|
||||
"from": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "de",
|
||||
"description": "La posición de la canción que deseas mover."
|
||||
},
|
||||
"to": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "a",
|
||||
"description": "La posición a la que deseas mover la canción."
|
||||
}
|
||||
}
|
||||
},
|
||||
"trackMoved": "",
|
||||
"trackPositionHigherThanQueueLength_one": "",
|
||||
"trackPositionHigherThanQueueLength_few": "",
|
||||
"trackPositionHigherThanQueueLength_many": ""
|
||||
"trackMoved": "{{icon}} **Canción movida**\n{track}\n\nLa canción ha sido movida desde la posición **`{{fromPosition}}`** hasta la posición **`{{toPosition}}`**.",
|
||||
"trackPositionHigherThanQueueLength_one": "{{icon}} **Oops!**\nNo puedes mover la canción en la posición **`{{fromPosition}}`** a la posición **`{{toPosition}}`**. Solo hay **`1`** canción en la cola.\n\nConsulta las canciones añadidas a la cola con {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength": "{{icon}} **Oops!**\nNo puedes mover la canción en la posición **`{{fromPosition}}`** a la posición **`{{toPosition}}`**. Solo hay **`{{count}}`** canciones en la cola.\n\nConsulta las canciones añadidas a la cola con {{queueCommand}}."
|
||||
},
|
||||
"nowplaying": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "reproduciendo",
|
||||
"description": "Mostrar información sobre la canción actual."
|
||||
},
|
||||
"embedFields": {
|
||||
"author": "",
|
||||
"plays": "",
|
||||
"source": ""
|
||||
"author": "**Artista**",
|
||||
"plays": "**Reproducciones**",
|
||||
"source": "**Fuente de la canción**"
|
||||
},
|
||||
"otherTracksInQueue_one": "",
|
||||
"otherTracksInQueue_few": "",
|
||||
"otherTracksInQueue_many": "",
|
||||
"playCount_zero": "",
|
||||
"playCount": ""
|
||||
"otherTracksInQueue_one": "1 pista más en la cola...",
|
||||
"otherTracksInQueue": "{{count}} Canciones más en la cola...",
|
||||
"playCount_zero": "Desconocido",
|
||||
"playCount": "{{count, number}}"
|
||||
},
|
||||
"pause": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "pausar",
|
||||
"description": "Alterna la pausa para la canción actual."
|
||||
},
|
||||
"pauseConfirmation": "",
|
||||
"resumeConfirmation": "",
|
||||
"directSource": ""
|
||||
"pauseConfirmation": "{{icon}} **Canción pausada**",
|
||||
"resumeConfirmation": "{{icon}} **Canción reanudada**",
|
||||
"directSource": "Fuente directa"
|
||||
},
|
||||
"play": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "reproducir",
|
||||
"description": "Agrega una canción o lista de reproducción a la cola mediante una búsqueda o URL.",
|
||||
"options": {
|
||||
"query": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "búsqueda",
|
||||
"description": "Búsqueda por texto o URL."
|
||||
}
|
||||
}
|
||||
},
|
||||
"addedToQueueTitle": "",
|
||||
"playlistAddedTitle": "",
|
||||
"playlistAddedTrackCount_one": "",
|
||||
"playlistAddedTrackCount_few": "",
|
||||
"playlistAddedTrackCount_many": "",
|
||||
"playlistTooLarge": "",
|
||||
"trackNotFound": "",
|
||||
"footerAddedPosition": ""
|
||||
"addedToQueueTitle": "{{icon}} **Añadido a la cola**",
|
||||
"playlistAddedTitle": "{{icon}} **Lista de reproducción añadida a la cola**",
|
||||
"playlistAddedTrackCount_one": "Y **1** canción más... Utiliza {{queueCommand}} para ver todas.",
|
||||
"playlistAddedTrackCount": "Y **{{count}}** canciones más... Usa {{queueCommand}} para ver todas.",
|
||||
"playlistTooLarge": "{{icon}} **Lista de reproducción demasiado grande**\nEsta lista de reproducción es demasiado grande para ser añadida a la cola.\n\nEl máximo de canciones que se pueden añadir a la cola es **{{count}}**.",
|
||||
"trackNotFound": "{{icon}} **No se encontró ninguna canción**\nNo se encontraron resultados para **{{query}}**.\n\nSi especificaste una URL, asegúrate de que sea válida y pública.",
|
||||
"footerAddedPosition": "Añadido a la cola en la posición {{position}}"
|
||||
},
|
||||
"queue": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "cola",
|
||||
"description": "Mostrar las canciones que se han añadido a la cola.",
|
||||
"options": {
|
||||
"page": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "página",
|
||||
"description": "Número de página para mostrar en la cola."
|
||||
}
|
||||
}
|
||||
},
|
||||
"tracksInQueueTitle": "",
|
||||
"emptyQueue": "",
|
||||
"estimatedDuration": "",
|
||||
"estimatedReallyLongTime": "",
|
||||
"invalidPageNumber_one": "",
|
||||
"invalidPageNumber_few": "",
|
||||
"invalidPageNumber_many": ""
|
||||
"tracksInQueueTitle": "{{icon}} **Canciones en la cola**",
|
||||
"emptyQueue": "La cola está vacía, agrega algunas canciones con {{playCommand}}!",
|
||||
"estimatedDuration": "Duración estimada: {{duration}}",
|
||||
"estimatedReallyLongTime": "Duración estimada: Un tiempo realmente largo",
|
||||
"invalidPageNumber_one": "{{icon}} **Oops!**\nLa página **`{{page}}`** no es un número de página válido.\n\nSolo hay **`1`** página en la cola.",
|
||||
"invalidPageNumber": "{{icon}} **Oops!**\nLa página **`{{page}}`** no es un número de página válido.\n\nSolo hay un total de **`{{count}}`** páginas en la cola."
|
||||
},
|
||||
"reload": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "recargar",
|
||||
"description": "Recarga los comandos slash, autocompletado e interacciones de componentes en todos los shards."
|
||||
},
|
||||
"reloadedCommands": "",
|
||||
"unableToReload": ""
|
||||
"reloadedCommands": "{{icon}} **Comandos recargados**",
|
||||
"unableToReload": "{{icon}} **Oops!**\n_Hmm..._ Parece que no puedo recargar el módulo de interacción en todos los shards."
|
||||
},
|
||||
"remove": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "eliminar",
|
||||
"description": "Elimina canciones de la cola usando ciertos filtros.",
|
||||
"options": {
|
||||
"track": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "canción",
|
||||
"description": "Elimina una canción por su posición en la cola.",
|
||||
"options": {
|
||||
"position": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "posición",
|
||||
"description": "La posición en la cola de la canción que deseas eliminar."
|
||||
}
|
||||
}
|
||||
},
|
||||
"range": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "rango",
|
||||
"description": "Elimina un rango de canciones en la cola.",
|
||||
"options": {
|
||||
"start": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "inicio",
|
||||
"description": "La posición inicial del rango a eliminar."
|
||||
},
|
||||
"end": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "fin",
|
||||
"description": "La posición final del rango a eliminar."
|
||||
}
|
||||
}
|
||||
},
|
||||
"queue": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "cola",
|
||||
"description": "Elimina todas las canciones de la cola."
|
||||
},
|
||||
"user": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "usuario",
|
||||
"description": "Elimina las canciones añadidas por un usuario en específico.",
|
||||
"options": {
|
||||
"target": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "objetivo",
|
||||
"description": "Usuario cuyas pistas a eliminar."
|
||||
}
|
||||
}
|
||||
},
|
||||
"duplicates": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "duplicados",
|
||||
"description": "Elimina todas las canciones duplicadas en la cola."
|
||||
}
|
||||
}
|
||||
},
|
||||
"noTracksRemoved": "",
|
||||
"removedTrack": "",
|
||||
"removedTracks_few": "",
|
||||
"removedTracks_many": "",
|
||||
"startPositionHigherThanEndPosition": "",
|
||||
"trackPositionHigherThanQueueLength_one": "",
|
||||
"trackPositionHigherThanQueueLength_few": "",
|
||||
"trackPositionHigherThanQueueLength_many": ""
|
||||
"noTracksRemoved": "{{icon}} **No se eliminaron canciones**\nNo se eliminaron canciones de la cola. Por favor, verifica si la opción que seleccionaste tiene canciones para eliminar.",
|
||||
"removedTrack": "{{icon}} **Canción eliminada**",
|
||||
"removedTracks": "{{icon}} **Canciones eliminadas**\nSe eliminaron **`{{count}}`** canciones de la cola.",
|
||||
"startPositionHigherThanEndPosition": "{{icon}} **Oops!**\nLa posición inicial **`{{start}}`** es mayor que la posición final **`{{end}}`**. Por favor, especifica un rango válido.\n\nConsulta las canciones añadidas a la cola con {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength_one": "{{icon}} **Oops!**\nLa posición **`{{position}}`** no es una posición de canción válida. Solo hay un total de **`1`** canción en la cola.\n\nConsulta las canciones añadidas a la cola con {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength": "{{icon}} **Oops!**\nLa posición **`{{position}}`** no es una posición de canción válida. Solo hay un total de **`{{count}}`** canciones en la cola.\n\nConsulta las canciones añadidas a la cola con {{queueCommand}}."
|
||||
},
|
||||
"seek": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "adelantar",
|
||||
"description": "Adelanta a una posición de tiempo en la canción actual.",
|
||||
"options": {
|
||||
"duration": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "duración",
|
||||
"description": "Marca de tiempo en formato 00:00:00 (HH:mm:ss)."
|
||||
}
|
||||
}
|
||||
},
|
||||
"correctFormatInstruction": "",
|
||||
"durationLongerThanTrackDuration": "",
|
||||
"seekingToTimestamp": ""
|
||||
"correctFormatInstruction": "{{icon}} **Oops!**\nIngresaste un formato de duración no válido, **`{{wrongDuration}}`**.\nPor favor, utiliza el formato **`HH:mm:ss`**, **`mm:ss`** o **`ss`**.\n\n**Ejemplos:**\n- {{seekCommand}} **`1:24:12`** - Ir a 1 hora, 24 minutos y 12 segundos.\n- {{seekCommand}} **`3:27`** - Ir a 3 minutos y 27 segundos.\n- {{seekCommand}} **`42`** - Ir a 42 segundos.",
|
||||
"durationLongerThanTrackDuration": "{{icon}} **Oops!**\nIngresaste **`{{wrongDuration}}`**, que es una marca de tiempo más larga que la duración de la canción actual.\n\nPor favor, intenta con una marca de tiempo que sea menor que la duración de la canción (**{{trackDuration}}**).",
|
||||
"seekingToTimestamp": "{{icon}} **Adelantando a la marca de tiempo**\nAdelantando a **`{{duration}}`** en la pista actual."
|
||||
},
|
||||
"shards": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "shards",
|
||||
"description": "Mostrar información sobre todos los fragmentos conectados.",
|
||||
"options": {
|
||||
"sort": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "ordenar",
|
||||
"description": "Por qué clasificar los shards.",
|
||||
"choices": {
|
||||
"none": "",
|
||||
"memory": "",
|
||||
"connections": "",
|
||||
"tracks": "",
|
||||
"listeners": "",
|
||||
"guilds": "",
|
||||
"members": ""
|
||||
"none": "Ninguno (Shard ID)",
|
||||
"memory": "Uso de memoria",
|
||||
"connections": "Conexiones de voz",
|
||||
"tracks": "Canciones",
|
||||
"listeners": "Oyentes",
|
||||
"guilds": "Servidores",
|
||||
"members": "Miembros"
|
||||
}
|
||||
},
|
||||
"page": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "página",
|
||||
"description": "Número de página a mostrar para los shards."
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"shuffle": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "mezclar",
|
||||
"description": "Mezcla aleatoriamente todas las canciones en la cola."
|
||||
},
|
||||
"shuffledTracks": ""
|
||||
"shuffledTracks": "{{icon}} **Canciones de la cola mezcladas**\nLas **{{count}}** canciones en la cola han sido mezcladas.\n\nConsulta el nuevo orden de la cola con {{queueCommand}}."
|
||||
},
|
||||
"skip": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "omitir",
|
||||
"description": "Salta la canción a la posición siguiente o específica en la cola.",
|
||||
"options": {
|
||||
"position": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "posición",
|
||||
"description": "La posición en la cola a la que saltar."
|
||||
}
|
||||
}
|
||||
},
|
||||
"emptyQueue": "",
|
||||
"skippedTrack": "",
|
||||
"trackPositionHigherThanQueueLength_one": "",
|
||||
"trackPositionHigherThanQueueLength_few": "",
|
||||
"trackPositionHigherThanQueueLength_many": ""
|
||||
"emptyQueue": "{{icon}} **Oops!**\nLa cola está vacía, ¡Agrega algunas canciones con {{playCommand}}!",
|
||||
"skippedTrack": "{{icon}} **Canción omitida**",
|
||||
"trackPositionHigherThanQueueLength_one": "{{icon}} **Oops!**\nSolo hay **1** canción en la cola. No puedes saltar a la canción **{{position}}**.\n\nConsulta las canciones añadidas a la cola con {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength": "{{icon}} **Oops!**\nSolo hay **{{count}}** canciones en la cola. No puedes saltar a la canción **{{position}}**.\n\nConsulta las canciones añadidas a la cola con {{queueCommand}}."
|
||||
},
|
||||
"status": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "estado",
|
||||
"description": "Mostrar el estado operativo del bot."
|
||||
},
|
||||
"openSourceButtonLabel": ""
|
||||
"openSourceButtonLabel": "GitHub"
|
||||
},
|
||||
"stop": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "detener",
|
||||
"description": "Elimina la cola y deja de reproducir audio."
|
||||
},
|
||||
"stoppedPlaying": ""
|
||||
"stoppedPlaying": "{{icon}} **Reproducción detenida**\nSe detuvo la reproducción del audio y se eliminó la cola de canciones.\n\n¡Para reproducir más música, utiliza el comando {{playCommand}}!"
|
||||
},
|
||||
"systemstatus": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "estado-sistema",
|
||||
"description": "Mostrar el estado operativo del bot con información técnica adicional."
|
||||
}
|
||||
},
|
||||
"volume": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"name": "volumen",
|
||||
"description": "Mostrar o cambia el volumen de reproducción.",
|
||||
"options": {
|
||||
"percentage": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
"name": "porcentaje",
|
||||
"description": "Porcentaje de volumen: Del 1% al 100%."
|
||||
}
|
||||
}
|
||||
},
|
||||
"invalidVolumeRange": "",
|
||||
"volumeChanged": "",
|
||||
"volumeInformation": "",
|
||||
"volumeMuted": ""
|
||||
"invalidVolumeRange": "{{icon}} **Oops!**\nNo puedes ajustar el volumen a **`{{wrongVolume}}%`**, por favor elige un valor entre **`1%`** y **`100%`**.",
|
||||
"volumeChanged": "{{icon}} **Volumen cambiado**\nEl volumen de reproducción ha sido cambiado a **`{{volume}}%`**.",
|
||||
"volumeInformation": "{{icon}} **Volumen de reproducción**\nEl volumen de reproducción está actualmente configurado en **`{{volume}}`**.",
|
||||
"volumeMuted": "{{icon}} **Audio silenciado**\nLa reproducción de audio ha sido silenciada porque el volumen se estableció en **`0%`**."
|
||||
}
|
||||
},
|
||||
"components": {
|
||||
"responses": {
|
||||
"paused": "",
|
||||
"resumed": ""
|
||||
"paused": "Canción pausada",
|
||||
"resumed": "Canción reanudada"
|
||||
}
|
||||
},
|
||||
"musicPlayerCommon": {
|
||||
"controls": {
|
||||
"stop": "",
|
||||
"previous": "",
|
||||
"pause": "",
|
||||
"resume": "",
|
||||
"skip": ""
|
||||
"stop": "Detener",
|
||||
"previous": "Anterior",
|
||||
"pause": "Pausa",
|
||||
"resume": "Reanudar",
|
||||
"skip": "Omitir"
|
||||
},
|
||||
"footerPageNumber_one": "",
|
||||
"footerPageNumber_few": "",
|
||||
"footerPageNumber_many": "",
|
||||
"loopingInfo": "",
|
||||
"nowPausedTitle": "",
|
||||
"nowPlayingTitle": "",
|
||||
"playingLive": "",
|
||||
"footerPageNumber_one": "Página {{page}} de {{pageCount}} (1 canción)",
|
||||
"footerPageNumber": "Página {{page}} de {{pageCount}} ({{count}} canciones)",
|
||||
"loopingInfo": "{{icon}} **Repetición**\nEl modo de repetición está configurado en **`{{loopMode}}`**. Puedes cambiarlo con {{loopCommand}}.\n",
|
||||
"nowPausedTitle": "{{icon}} **Actualmente en pausa**",
|
||||
"nowPlayingTitle": "{{icon}} **Reproduciendo ahora**",
|
||||
"playingLive": "{{icon}} **`EN VIVO`** - Reproduciendo continuamente desde la fuente en vivo.",
|
||||
"queueRepeatMode": {
|
||||
"off": "",
|
||||
"track": "",
|
||||
"queue": "",
|
||||
"autoplay": ""
|
||||
"off": "Deshabilitado",
|
||||
"track": "Pista",
|
||||
"queue": "Cola",
|
||||
"autoplay": "Autoreproducción"
|
||||
},
|
||||
"requestedBy": "",
|
||||
"unavailableAuthor": "",
|
||||
"unavailableDuration": "",
|
||||
"unavailableRequestedBy": "",
|
||||
"unavailableTrackTitle": "",
|
||||
"unavailableTrackUrl": "",
|
||||
"unavailableSource": "",
|
||||
"voiceChannelInfo": ""
|
||||
"requestedBy": "**Solicitado por:** {{user}}",
|
||||
"unavailableAuthor": "No disponible",
|
||||
"unavailableDuration": "_No hay duración disponible._",
|
||||
"unavailableRequestedBy": "No disponible",
|
||||
"unavailableTrackTitle": "Título no disponible",
|
||||
"unavailableTrackUrl": "**No disponible**",
|
||||
"unavailableSource": "Unavailable",
|
||||
"voiceChannelInfo": "Canal: {{channel}} ({{bitrate}}kbps)"
|
||||
},
|
||||
"statistics": {
|
||||
"botStatus": {
|
||||
"title": "",
|
||||
"joinedServers": "",
|
||||
"joinedServers_one": "",
|
||||
"totalMembers": "",
|
||||
"releaseVersion": ""
|
||||
"title": "{{icon}} **Estado del bot**",
|
||||
"joinedServers": "**{{count}}** Servidores unidos",
|
||||
"joinedServers_one": "**1** Servidor unido",
|
||||
"totalMembers": "**{{count}}** Miembros totales",
|
||||
"releaseVersion": "**{{version}}** Versión de lanzamiento"
|
||||
},
|
||||
"queueStatus": {
|
||||
"title": "",
|
||||
"voiceConnections": "",
|
||||
"voiceConnections_one": "",
|
||||
"tracksInQueues": "",
|
||||
"tracksInQueues_one": "",
|
||||
"usersListening": "",
|
||||
"usersListening_one": ""
|
||||
"title": "{{icon}} **Estado de la cola**",
|
||||
"voiceConnections": "**{{count}}** Conexiones de voz",
|
||||
"voiceConnections_one": "**1** Conexión de voz",
|
||||
"tracksInQueues": "**{{count}}** Canciones en cola",
|
||||
"tracksInQueues_one": "**1** Canción en cola",
|
||||
"usersListening": "**{{count}}** Usuarios escuchando",
|
||||
"usersListening_one": "**1** Usuario escuchando"
|
||||
},
|
||||
"systemStatus": {
|
||||
"title": "",
|
||||
"uptime": "",
|
||||
"cpu": "",
|
||||
"cpuDetailed": "",
|
||||
"memory": "",
|
||||
"memoryDetailed": "",
|
||||
"platform": ""
|
||||
"title": "{{icon}} **Estado del sistema**",
|
||||
"uptime": "**{{value}}** Tiempo de actividad",
|
||||
"cpu": "**{{value, number(minimumFractionDigits: 2)}}%** uso de CPU",
|
||||
"cpuDetailed": "**{{usage}}% @ {{cores}} núcleos** uso de CPU",
|
||||
"memory": "**{{value, number}} MB** Uso de memoria",
|
||||
"memoryDetailed": "**{{used, number}} / {{total, number}} MB** Uso de memoria",
|
||||
"platform": "**{{value}}** Plataforma"
|
||||
},
|
||||
"discordStatus": {
|
||||
"title": "",
|
||||
"apiLatency": ""
|
||||
"title": "{{icon}} **Estado de Discord**",
|
||||
"apiLatency": "**{{value, number}} ms** latencia de la API de Discord"
|
||||
},
|
||||
"dependencies": {
|
||||
"title": ""
|
||||
"title": "{{icon}} **Dependencias**"
|
||||
}
|
||||
},
|
||||
"validation": {
|
||||
"cannotJoinVoiceOrTalk": "",
|
||||
"cannotSendMessageInChannel": "",
|
||||
"historyDoesNotExist": "",
|
||||
"notInSameVoiceChannel": "",
|
||||
"notInVoiceChannel": "",
|
||||
"notValidGuildId": "",
|
||||
"queueDoesNotExist": "",
|
||||
"queueIsEmpty": "",
|
||||
"queueNoCurrentTrack": "",
|
||||
"trackNotPlayingAnymore": ""
|
||||
"cannotJoinVoiceOrTalk": "{{icon}} **Oops!**\nNo tengo permiso para reproducir audio en el canal de voz {{channel}}.\n\nAsegúrate que tenga los permisos para **`Conectar`** y **`Hablar`** en este canal de voz.",
|
||||
"cannotSendMessageInChannel": "{{icon}} **Oops!**\nNo tengo permiso para enviar respuestas de mensajes en el canal {{channel}}.\n\nAsegúrate que tenga el permiso **`Ver Canal`** en este canal de texto.",
|
||||
"historyDoesNotExist": "{{icon}} **Oops!**\nNo hay canciones en el historial y nada reproduciéndose actualmente. ¡Primero agrega algunas canciones con {{playCommand}}!",
|
||||
"notInSameVoiceChannel": "{{icon}} **No estás en el mismo canal de voz**\nNecesitas estar en el mismo canal de voz que yo para realizar esta acción.\n\n**Canal de voz:** {{channel}}",
|
||||
"notInVoiceChannel": "{{icon}} **No estás en un canal de voz**\nNecesitas estar en un canal de voz para realizar esta acción.",
|
||||
"notValidGuildId": "{{icon}} **Oops!**\nNo tienes permisos para realizar esta acción.\n\nEl comando {{command}} no puede ejecutarse en este servidor.",
|
||||
"queueDoesNotExist": "{{icon}} **Oops!**\nNo hay canciones en la cola y nada reproduciéndose actualmente. ¡Primero agrega algunas canciones con {{playCommand}}!",
|
||||
"queueIsEmpty": "{{icon}} **Oops!**\nNo se han añadido canciones a la cola. ¡Primero agrega algunas canciones con {{playCommand}}!",
|
||||
"queueNoCurrentTrack": "{{icon}} **Oops!**\nNo hay nada reproduciéndose actualmente. ¡Primero agrega algunas canciones con {{playCommand}}!",
|
||||
"trackNotPlayingAnymore": "{{icon}} **Oops!**\nEsta canción ha sido omitida o ya no se está reproduciendo."
|
||||
},
|
||||
"errors": {
|
||||
"unexpectedError": "",
|
||||
"footerExecutionId": "",
|
||||
"cannotExtractAudioStream": "",
|
||||
"cannotLoadAudioStream": "",
|
||||
"cannotPlayAudioStream": "",
|
||||
"generalPlayerError": ""
|
||||
"unexpectedError": "**{{icon}} Oh-oh... _Algo ha salido mal!**\nHubo un error inesperado mientras se intentaba realizar esta acción. Puedes intentarlo de nuevo.\n\n_Si este problema persiste, por favor envía un informe de error en el **[servidor de soporte]({{serverInviteUrl}})**._",
|
||||
"footerExecutionId": "ID de ejecución: {{executionId}}",
|
||||
"cannotExtractAudioStream": "**{{icon}} Oops!**\nNo se pudo acceder al audio de la canción **[{{trackTitle}}]({{trackUrl}})**.\n\nParece que la fuente no está disponible públicamente o no es compatible.",
|
||||
"cannotLoadAudioStream": "**{{icon}} ¡Uh-oh.!. _Algo salió mal!**\nParece que hubo un problema al cargar la canción.\n\nSi ejecutaste un comando, puedes intentarlo nuevamente.\n\n_Si este problema persiste, por favor, envía un informe de error en el **[servidor de soporte]({{serverInviteUrl}})**!_",
|
||||
"cannotPlayAudioStream": "**{{icon}} ¡Uh-oh.!. _Algo_ salió mal!**\nParece que hubo un problema al reproducir la canción.\n\nSi ejecutaste un comando, puedes intentarlo de nuevo.\n\n_Si el problema persiste, por favor, envía un informe de error en el **[servidor de soporte]({{serverInviteUrl}})**!_",
|
||||
"generalPlayerError": "**{{icon}} ¡Uh-oh... _Algo_ salió mal!**\nParece que hubo un problema relacionado con la cola o la canción actual.\n\nSi ejecutaste un comando, puedes intentarlo de nuevo.\n\n_Si el problema persiste, por favor, envía un informe de error en el **[servidor de soporte]({{serverInviteUrl}})**._"
|
||||
},
|
||||
"systemMessages": {
|
||||
"playerSkipError": "",
|
||||
"playerError": "",
|
||||
"generalPlayerError": ""
|
||||
"playerSkipError": "{{icon}} **player.events.on('playerSkip')**\nURL de la canción: {{trackUrl}}\n\n<@{{userId}}>",
|
||||
"playerError": "{{icon}} **player.events.on('playerError')**\nMensaje: {{message}}\n\n<@{{userId}}>",
|
||||
"generalPlayerError": "{{icon}} **player.events.on('error')**\nMensaje: {{message}}\n\n<@{{userId}}>"
|
||||
}
|
||||
}
|
||||
+11
-21
@@ -16,9 +16,8 @@
|
||||
},
|
||||
"trackHistoryEmpty": "{{icon}} **Oi sann!**\nHistorikken er tom, legg til noen låter med {{playCommand}}!",
|
||||
"trackPositionHigherThanHistoryLength_one": "{{icon}} **Oi sann!**\nDet er bare **1** låt i historikken. Du kan ikke gå tilbake til posisjon **{{backPosition}}**.\n\nVis låter lagt til i historikken med {{historyCommand}}.",
|
||||
"trackPositionHigherThanHistoryLength_few": "{{icon}} **Oi sann!**\nDet er bare **{{count}}** låter i historikken. Du kan ikke gå tilbake til posisjon **{{backPosition}}**.\n\nVis låter lagt til i historikken med {{historyCommand}}.",
|
||||
"trackPositionHigherThanHistoryLength_many": "{{icon}} **Oi sann!**\nDet er bare **{{count}}** låter i historikken. Du kan ikke gå tilbake til posisjon **{{backPosition}}**.\n\nVis låter lagt til i historikken med {{historyCommand}}.",
|
||||
"trackReplayed": "{{icon}} **Spiller låt på nytt**\n{{track}}"
|
||||
"trackPositionHigherThanHistoryLength": "{{icon}} **Oi sann!**\nDet er bare **{{count}}** låter i historikken. Du kan ikke gå tilbake til posisjon **{{backPosition}}**.\n\nVis låter lagt til i historikken med {{historyCommand}}.",
|
||||
"trackReplayed": "{{icon}} **Spiller om låt**\n{{track}}"
|
||||
},
|
||||
"filters": {
|
||||
"metadata": {
|
||||
@@ -74,8 +73,7 @@
|
||||
},
|
||||
"emptyHistory": "Historikken er tom, legg til noen låter med {{playCommand}}!",
|
||||
"invalidPageNumber_one": "{{icon}} **Oi sann!**\nSide **`{{page}}`** er ikke et gyldig sidenummer.\n\nDet er bare **`1`** side i historikken.",
|
||||
"invalidPageNumber_few": "{{icon}} **Oi sann!**\nSide **`{{page}}`** er ikke et gyldig sidenummer.\n\nDet er totalt bare **`{{count}}`** sider i historikken.",
|
||||
"invalidPageNumber_many": "{{icon}} **Oi sann!**\nSide **`{{page}}`** er ikke et gyldig sidenummer.\n\nDet er totalt bare **`{{count}}`** sider i historikken.",
|
||||
"invalidPageNumber": "{{icon}} **Oi sann!**\nSide **`{{page}}`** er ikke et gyldig sidenummer.\n\nDet er totalt bare **`{{count}}`** sider i historikken.",
|
||||
"tracksInHistoryTitle": "{{icon}} **Låter i historikken**"
|
||||
},
|
||||
"join": {
|
||||
@@ -150,8 +148,7 @@
|
||||
},
|
||||
"trackMoved": "{{icon}} **Flyttet låten**\n{track}\n\nLåten har blitt flyttet fra posisjon **`{{fromPosition}}`** til posisjon **`{{toPosition}}`** i køen.",
|
||||
"trackPositionHigherThanQueueLength_one": "{{icon}} **Oi sann!**\nDu kan ikke flytte låten i posisjon **`{{fromPosition}}`** til posisjon **`{{toPosition}}`** i køen. Det er bare **`1`** låt i køen.\n\nVis låter lagt til i køen med {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength_few": "{{icon}} **Oi sann!**\nDu kan ikke flytte låten i posisjon **`{{fromPosition}}`** til posisjon **`{{toPosition}}`** i køen. Det er bare **`{{count}}`** låter i køen.\n\nVis låter lagt til i køen med {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength_many": "{{icon}} **Oi sann!**\nDu kan ikke flytte låten i posisjon **`{{fromPosition}}`** til posisjon **`{{toPosition}}`** i køen. Det er bare **`{{count}}`** låter i køen.\n\nVis låter lagt til i køen med {{queueCommand}}."
|
||||
"trackPositionHigherThanQueueLength": "{{icon}} **Oi sann!**\nDu kan ikke flytte låten i posisjon **`{{fromPosition}}`** til posisjon **`{{toPosition}}`** i køen. Det er bare **`{{count}}`** låter i køen.\n\nVis låter lagt til i køen med {{queueCommand}}."
|
||||
},
|
||||
"nowplaying": {
|
||||
"metadata": {
|
||||
@@ -164,8 +161,7 @@
|
||||
"source": "**Kilde for låt**"
|
||||
},
|
||||
"otherTracksInQueue_one": "1 annen låt i køen...",
|
||||
"otherTracksInQueue_few": "{{count}} andre låter i køen...",
|
||||
"otherTracksInQueue_many": "{{count}} andre låter i køen...",
|
||||
"otherTracksInQueue": "{{count}} andre låter i køen...",
|
||||
"playCount_zero": "Ukjent",
|
||||
"playCount": "{{count, number}}"
|
||||
},
|
||||
@@ -192,8 +188,7 @@
|
||||
"addedToQueueTitle": "{{icon}} **Lagt til i køen**",
|
||||
"playlistAddedTitle": "{{icon}} **Lagt til spilleliste i køen**",
|
||||
"playlistAddedTrackCount_one": "Og **1** til låt... Bruk {{queueCommand}} for å se alle.",
|
||||
"playlistAddedTrackCount_few": "Og **{{count}}** flere låter... Bruk {{queueCommand}} for å se alle.",
|
||||
"playlistAddedTrackCount_many": "Og **{{count}}** flere låter... Bruk {{queueCommand}} for å se alle.",
|
||||
"playlistAddedTrackCount": "Og **{{count}}** flere låter... Bruk {{queueCommand}} for å se alle.",
|
||||
"playlistTooLarge": "{{icon}} **Spilleliste for stor**\nDenne spillelisten er for stor til å legges til i køen.\n\nMaksimalt antall låter som kan legges til i køen er **{{count}}**.",
|
||||
"trackNotFound": "{{icon}} **Ingen låter funnet**\nIngen resultater funnet for **{{query}}**.\n\nHvis du angav en URL, vær sikker på at den er gyldig og offentlig.",
|
||||
"footerAddedPosition": "Lagt til i posisjon {{position}} i køen"
|
||||
@@ -214,8 +209,7 @@
|
||||
"estimatedDuration": "Estimert tid igjen: {{duration}}",
|
||||
"estimatedReallyLongTime": "Estimert tid igjen: Veldig lang tid",
|
||||
"invalidPageNumber_one": "{{icon}} **Oi sann!**\nSide **`{{page}}`** er ikke et gyldig sidenummer.\n\nDet er bare **`1`** side i køen.",
|
||||
"invalidPageNumber_few": "{{icon}} **Oi sann!**\nSide **`{{page}}`** er ikke et gyldig sidenummer.\n\nDet er totalt bare **`{{count}}`** sider i køen.",
|
||||
"invalidPageNumber_many": "{{icon}} **Oi sann!**\nSide **`{{page}}`** er ikke et gyldig sidenummer.\n\nDet er totalt bare **`{{count}}`** sider i køen."
|
||||
"invalidPageNumber": "{{icon}} **Oi sann!**\nSide **`{{page}}`** er ikke et gyldig sidenummer.\n\nDet er totalt bare **`{{count}}`** sider i køen."
|
||||
},
|
||||
"reload": {
|
||||
"metadata": {
|
||||
@@ -276,12 +270,10 @@
|
||||
},
|
||||
"noTracksRemoved": "{{icon}} **Ingen låter fjernet**\nDet ble ikke fjernet noen låter fra køen. Vennligst sjekk om alternativet du valgte har låter som kan fjernes.",
|
||||
"removedTrack": "{{icon}} **Fjernet låt**",
|
||||
"removedTracks_few": "{{icon}} **Fjernet låter**\n**`{{count}}`** låter ble fjernet fra køen.",
|
||||
"removedTracks_many": "{{icon}} **Fjernet låter**\n**`{{count}}`** låter ble fjernet fra køen.",
|
||||
"removedTracks": "{{icon}} **Fjernet låter**\n**`{{count}}`** låter ble fjernet fra køen.",
|
||||
"startPositionHigherThanEndPosition": "{{icon}} **Oi sann!**\nStartposisjon **`{{start}}`** er høyere enn siste posisjon **`{{end}}`** i køen. Vennligst spesifiser et gyldig område.\n\nVis låter lagt til i køen med {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength_one": "{{icon}} **Oi sann!**\nPosisjon **`{{position}}`** er ikke en gyldig køposisjon. Det er bare **`1`** låt i køen.\n\nVis låter lagt til i køen med {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength_few": "{{icon}} **Oi sann!**\nPosisjon **`{{position}}`** er ikke en gyldig køposisjon. Det er bare **`{{count}}`** låter i køen.\n\nVis låter lagt til i køen med {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength_many": "{{icon}} **Oi sann!**\nPosisjon **`{{position}}`** er ikke en gyldig køposisjon. Det er bare **`{{count}}`** låter i køen.\n\nVis låter lagt til i køen med {{queueCommand}}."
|
||||
"trackPositionHigherThanQueueLength": "{{icon}} **Oi sann!**\nPosisjon **`{{position}}`** er ikke en gyldig køposisjon. Det er bare **`{{count}}`** låter i køen.\n\nVis låter lagt til i køen med {{queueCommand}}."
|
||||
},
|
||||
"seek": {
|
||||
"metadata": {
|
||||
@@ -344,8 +336,7 @@
|
||||
"emptyQueue": "{{icon}} **Oi sann!**\nKøen er tom, legg til noen låter med {{playCommand}}!",
|
||||
"skippedTrack": "{{icon}} **Hoppet over låt**",
|
||||
"trackPositionHigherThanQueueLength_one": "{{icon}} **Oi sann!**\nDet er bare **1** låt i køen. Du kan ikke hoppe til posisijon **{{position}}** i køen.\n\nVis låter lagt til i køen med {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength_few": "{{icon}} **Oi sann!**\nDet er bare **{{count}}** låter i køen. Du kan ikke hoppe til posisjon **{{position}}** i køen.\n\nVis låter lagt til i køen med {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength_many": "{{icon}} **Oi sann!**\nDet er bare **{{count}}** låter i køen. Du kan ikke hoppe til posisjon **{{position}}** i køen.\n\nVis låter lagt til i køen med {{queueCommand}}."
|
||||
"trackPositionHigherThanQueueLength": "{{icon}} **Oi sann!**\nDet er bare **{{count}}** låter i køen. Du kan ikke hoppe til posisjon **{{position}}** i køen.\n\nVis låter lagt til i køen med {{queueCommand}}."
|
||||
},
|
||||
"status": {
|
||||
"metadata": {
|
||||
@@ -399,8 +390,7 @@
|
||||
"skip": "Hopp over"
|
||||
},
|
||||
"footerPageNumber_one": "Side {{page}} av {{pageCount}} (1 låt)",
|
||||
"footerPageNumber_few": "Side {{page}} av {{pageCount}} ({{count}} låter)",
|
||||
"footerPageNumber_many": "Side {{page}} av {{pageCount}} ({{count}} låter)",
|
||||
"footerPageNumber": "Side {{page}} av {{pageCount}} ({{count}} låter)",
|
||||
"loopingInfo": "{{icon}} **Looping aktivert**\nLoop-modus er satt til **`{{loopMode}}`**. Du kan endre det med {{loopCommand}}.\n",
|
||||
"nowPausedTitle": "{{icon}} **For øyeblikket pauset**",
|
||||
"nowPlayingTitle": "{{icon}} **Spiller nå**",
|
||||
|
||||
+22
-32
@@ -16,9 +16,8 @@
|
||||
},
|
||||
"trackHistoryEmpty": "{{icon}} **Ups!**\nIstoricul e gol, dar poți adăuga niște piese folosind {{playCommand}}!",
|
||||
"trackPositionHigherThanHistoryLength_one": "{{icon}} **Ups!**\nMai este doar **o** piesă în istoric. Nu te poți întoarce la poziția **{{backPosition}}**.\n\nPiesele adăugate în istoric pot fi văzute folosind {{historyCommand}}.",
|
||||
"trackPositionHigherThanHistoryLength_few": "{{icon}} **Ups!**\nMai sunt doar **{{count}}** piese în istoric. Nu te poți întoarce la poziția **{{backPosition}}**.\n\nPiesele adăugate în istoric pot fi văzute folosind {{historyCommand}}.",
|
||||
"trackPositionHigherThanHistoryLength_many": "{{icon}} **Ups!**\nMai sunt doar **{{count}}** de piese în istoric. Nu te poți întoarce la poziția **{{backPosition}}**.\n\nPiesele adăugate în istoric pot fi văzute folosind {{historyCommand}}.",
|
||||
"trackReplayed": "{{icon}} **Piesă recuperată**\n{{track}}"
|
||||
"trackPositionHigherThanHistoryLength": "{{icon}} **Oops!**\nSunt doar **{{count}}** piese în istorie. Nu te poți întoarce la melodia **{{backPosition}}**.\n\nVezi piesele adăugate în istorie cu {{historyCommand}}.",
|
||||
"trackReplayed": "{{icon}} **Rejoacă piesa**\n{{track}}"
|
||||
},
|
||||
"filters": {
|
||||
"metadata": {
|
||||
@@ -74,8 +73,7 @@
|
||||
},
|
||||
"emptyHistory": "Istoricul e gol, adaugă niște piese cu {{playCommand}}!",
|
||||
"invalidPageNumber_one": "{{icon}} **Ups!**\nPagina **`{{page}}`** nu este o pagină validă.\n\nIstoricul conține numai **o** pagină.",
|
||||
"invalidPageNumber_few": "{{icon}} **Ups!**\nPagina **`{{page}}`** nu este o pagină validă.\n\nIstoricul conține numai **`{{count}}`** pagini.",
|
||||
"invalidPageNumber_many": "{{icon}} **Ups!**\nPagina **`{{page}}`** nu este o pagină validă.\n\nIstoricul conține numai **`{{count}}`** de pagini.",
|
||||
"invalidPageNumber": "{{icon}} **Hopa!**\nPagina **`{{page}}`** nu este un număr valid de pagină.\n\nExistă doar un total de **`{{count}}`** pagini în istorie.",
|
||||
"tracksInHistoryTitle": "{{icon}} **Piese în istoric**"
|
||||
},
|
||||
"join": {
|
||||
@@ -150,8 +148,7 @@
|
||||
},
|
||||
"trackMoved": "{{icon}} **Piesă mutată**\n{track}\n\nPiesa a fost mutată din poziția **`{{fromPosition}}`** la poziția **`{{toPosition}}`**.",
|
||||
"trackPositionHigherThanQueueLength_one": "{{icon}} **Ups!**\nNu poți muta piesa din poziția **`{{fromPosition}}`** spre poziția **`{{toPosition}}`**. Coada conține doar **o** singură piesă.\n\nVezi piese adăugate în coadă folosind {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength_few": "{{icon}} **Ups!**\nNu poți muta piesa din poziția **`{{fromPosition}}`** spre poziția **`{{toPosition}}`**. Coada conține doar **`{{count}}`** piese.\n\nVezi piese adăugate în coadă folosind {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength_many": "{{icon}} **Ups!**\nNu poți muta piesa din poziția **`{{fromPosition}}`** spre poziția **`{{toPosition}}`**. Coada conține doar **`{{count}}`** de piese.\n\nVezi piese adăugate în coadă folosind {{queueCommand}}."
|
||||
"trackPositionHigherThanQueueLength": "{{icon}} **Ups!**\nNu puteți muta melodia în poziția **`{{fromPosition}}`** la poziția **`{{toPosition}}`**. Sunt doar **`{{count}}`** piese în coadă.\n\nVezi melodiile adăugate la coada de redare cu {{queueCommand}}."
|
||||
},
|
||||
"nowplaying": {
|
||||
"metadata": {
|
||||
@@ -164,8 +161,7 @@
|
||||
"source": "**Sursa piesei**"
|
||||
},
|
||||
"otherTracksInQueue_one": "O altă piesă în coadă...",
|
||||
"otherTracksInQueue_few": "{{count}} alte piese în coadă...",
|
||||
"otherTracksInQueue_many": "{{count}} de alte piese în coadă...",
|
||||
"otherTracksInQueue": "{{count}} alte piese în coada de aşteptare...",
|
||||
"playCount_zero": "Necunoscut",
|
||||
"playCount": "{{count, number}}"
|
||||
},
|
||||
@@ -192,8 +188,7 @@
|
||||
"addedToQueueTitle": "{{icon}} **Adăugat în coadă**",
|
||||
"playlistAddedTitle": "{{icon}} **Playlist adăugat în coadă**",
|
||||
"playlistAddedTrackCount_one": "Și **o** altă piesă... Folosește {{queueCommand}} pentru a le afișa pe toate.",
|
||||
"playlistAddedTrackCount_few": "Și **{{count}}** alte piese... Folosește {{queueCommand}} pentru a le afișa pe toate.",
|
||||
"playlistAddedTrackCount_many": "Și **{{count}}** de alte piese... Folosește {{queueCommand}} pentru a le afișa pe toate.",
|
||||
"playlistAddedTrackCount": "Și **{{count}}** mai multe piese... Folosește {{queueCommand}} pentru a vedea pe toate.",
|
||||
"playlistTooLarge": "{{icon}} **Playlist prea mare**\nAcest playlist este prea mare, și nu poate fi adăugat în coadă.\n\nNumărul maxim de piese care pot fi adăugate în coadă este **{{count}}**.",
|
||||
"trackNotFound": "{{icon}} **Nicio piesă găsită**\nNu a fost găsit niciun rezultat pentru **{{query}}**.\n\nDacă ai specificat un URL, asigură-te că este corect și public.",
|
||||
"footerAddedPosition": "Adăugată în coadă în poziția {{position}}"
|
||||
@@ -214,8 +209,7 @@
|
||||
"estimatedDuration": "Durată estimată: {{duration}}",
|
||||
"estimatedReallyLongTime": "Durată estimată: Foarte mult timp",
|
||||
"invalidPageNumber_one": "{{icon}} **Ups!**\nPagina **`{{page}}`** nu este o pagină validă.\n\nCoada conține numai **o** pagină.",
|
||||
"invalidPageNumber_few": "{{icon}} **Ups!**\nPagina **`{{page}}`** nu este o pagină validă.\n\nCoada conține numai **`{{count}}`** pagini.",
|
||||
"invalidPageNumber_many": "{{icon}} **Ups!**\nPagina **`{{page}}`** nu este o pagină validă.\n\nCoada conține numai **`{{count}}`** de pagini."
|
||||
"invalidPageNumber": "{{icon}} **Hopa!**\nPagina **`{{page}}`** nu este un număr valid de pagină.\n\nExistă doar un total de **`{{count}}`** pagini în coadă."
|
||||
},
|
||||
"reload": {
|
||||
"metadata": {
|
||||
@@ -276,16 +270,14 @@
|
||||
},
|
||||
"noTracksRemoved": "{{icon}} **Nicio piesă eliminată**\nNicio piesă nu a fost eliminată din coadă. Verifică dacă filtrul selectat are piese de eliminat.",
|
||||
"removedTrack": "{{icon}} **Piesă eliminată**",
|
||||
"removedTracks_few": "{{icon}} **Piese eliminate**\n**`{{count}}`** piese au fost eliminate din coadă.",
|
||||
"removedTracks_many": "{{icon}} **Piese eliminate**\n**`{{count}}`** de piese au fost eliminate din coadă.",
|
||||
"removedTracks": "{{icon}} **Piese eliminate**\n**`{{count}}`** piese au fost eliminate din coadă.",
|
||||
"startPositionHigherThanEndPosition": "{{icon}} **Ups!**\nPoziția de început **`{{start}}`** e mai mare decât poziția de sfârșit **`{{end}}`**. Te rog să specifici un interval valid.\n\nView tracks added to the queue with {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength_one": "{{icon}} **Ups!**\nPoziția **`{{position}}`** nu este o poziția validă în coada de piese. Coada conține numai **o** piesă.\n\nVezi piesele adăugate în coadă folosind {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength_few": "{{icon}} **Ups!**\nPoziția **`{{position}}`** nu este o poziție validă în coada de piese. Coada conține numai **`{{count}}`** piese.\n\nVezi piesele adăugate în coadă folosind {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength_many": "{{icon}} **Ups!**\nPoziția **`{{position}}`** nu este o poziție validă în coada de piese. Coada conține numai **`{{count}}`** de piese.\n\nVezi piesele adăugate în coadă folosind {{queueCommand}}."
|
||||
"trackPositionHigherThanQueueLength": "{{icon}} **Oops!**\nPoziția **`{{position}}`** nu este o poziție validă a piesei. Există doar un total de **`{{count}}`** piese în coada de așteptare.\n\nVezi piesele adăugate la coada de redare cu {{queueCommand}}."
|
||||
},
|
||||
"seek": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"name": "cauta",
|
||||
"description": "Navighează la o anumită durată în piesa în curs de redare.",
|
||||
"options": {
|
||||
"duration": {
|
||||
@@ -300,7 +292,7 @@
|
||||
},
|
||||
"shards": {
|
||||
"metadata": {
|
||||
"name": "",
|
||||
"name": "cioburi",
|
||||
"description": "Afișează informații despre toate shardurile conectate.",
|
||||
"options": {
|
||||
"sort": {
|
||||
@@ -344,8 +336,7 @@
|
||||
"emptyQueue": "{{icon}} **Ups!**\nCoada este goală, adaugă niște piese folosind {{playCommand}}!",
|
||||
"skippedTrack": "{{icon}} **Înaintat**",
|
||||
"trackPositionHigherThanQueueLength_one": "{{icon}} **Ups!**\nCoada conține numai **o** piesă. Nu poți înainta la piesa **{{position}}**.\n\nVezi piesele adăugate în coadă folosind {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength_few": "{{icon}} **Ups!**\nCoada conține numai **{{count}}** piese. Nu poți înainta la piesa **{{position}}**.\n\nVezi piesele adăugate în coadă folosind {{queueCommand}}.",
|
||||
"trackPositionHigherThanQueueLength_many": "{{icon}} **Ups!**\nCoada conține numai **{{count}}** de piese. Nu poți înainta la piesa **{{position}}**.\n\nVezi piesele adăugate în coadă folosind {{queueCommand}}."
|
||||
"trackPositionHigherThanQueueLength": "{{icon}} **Hopa!**\nSunt doar **{{count}}** piese în coadă. Nu poți sări pentru a urmări **{{position}}**.\n\nVezi melodiile adăugate la coadă cu {{queueCommand}}."
|
||||
},
|
||||
"status": {
|
||||
"metadata": {
|
||||
@@ -399,8 +390,7 @@
|
||||
"skip": "Înainte"
|
||||
},
|
||||
"footerPageNumber_one": "Pagina {{page}} din {{pageCount}} (o piesă)",
|
||||
"footerPageNumber_few": "Page {{page}} din {{pageCount}} ({{count}} piese)",
|
||||
"footerPageNumber_many": "Page {{page}} din {{pageCount}} ({{count}} de piese)",
|
||||
"footerPageNumber": "{{page}} de {{pageCount}} ({{count}} piese)",
|
||||
"loopingInfo": "{{icon}} **Repetiție**\nModul de repetiție este setat la **`{{loopMode}}`**. Se poate schimba folosind {{loopCommand}}.\n",
|
||||
"nowPausedTitle": "{{icon}} **În pauză**",
|
||||
"nowPlayingTitle": "{{icon}} **În redare**",
|
||||
@@ -467,16 +457,16 @@
|
||||
"trackNotPlayingAnymore": "{{icon}} **Ups!**\nS-a trecut peste această piesă, sau nu mai este în curs de redare."
|
||||
},
|
||||
"errors": {
|
||||
"unexpectedError": "",
|
||||
"footerExecutionId": "",
|
||||
"cannotExtractAudioStream": "",
|
||||
"cannotLoadAudioStream": "",
|
||||
"cannotPlayAudioStream": "",
|
||||
"generalPlayerError": ""
|
||||
"unexpectedError": "**{{icon}} Uh-oh... _Ceva nu a mers bine!**\nA apărut o eroare neașteptată în timp ce se încerca efectuarea acestei acțiuni. Poți încerca din nou.\n\n_Dacă problema persistă, te rugăm să trimiți un raport de eroare în **[serverul de suport]({{serverInviteUrl}})**._",
|
||||
"footerExecutionId": "ID execuție: {{executionId}}",
|
||||
"cannotExtractAudioStream": "**{{icon}} Oops!**\nImposibil de recuperat sunetul pentru piesa **[{{trackTitle}}]({{trackUrl}})**.\n\nSe pare că sursa nu este disponibilă public sau că sursa nu este acceptată.",
|
||||
"cannotLoadAudioStream": "**{{icon}} Uh-oh... _Ceva nu a mers bine!**\nSe pare că a apărut o problemă în timp ce încărcarea stream-ului pentru piesă.\n\nDacă ai efectuat o comandă, poți încerca din nou.\n\n_Dacă problema persistă, vă rugăm să trimiteți un raport de eroare în **[serverul de suport]({{serverInviteUrl}})**._",
|
||||
"cannotPlayAudioStream": "**{{icon}} Uh-oh... _Ceva nu a funcționat bine!**\nSe pare că a apărut o problemă în timp ce redai piesa.\n\nDacă ai efectuat o comandă, poți încerca din nou.\n\n_Dacă problema persistă, vă rugăm să trimiteți un raport de eroare în **[serverul de suport]({{serverInviteUrl}})**._",
|
||||
"generalPlayerError": "**{{icon}} Uh-oh... _Ceva nu a mers bine!**\nSe pare că a existat o problemă legată de coada de așteptare sau de piesa curentă.\n\nDacă ai efectuat o comandă, poți încerca din nou.\n\n_Dacă problema persistă, vă rugăm să trimiteți un raport de eroare în **[serverul de suport]({{serverInviteUrl}})**._"
|
||||
},
|
||||
"systemMessages": {
|
||||
"playerSkipError": "",
|
||||
"playerError": "",
|
||||
"generalPlayerError": ""
|
||||
"playerSkipError": "{{icon}} **player.events.on('playerSkip')**\nPiesă URL: {{trackUrl}}\n\n<@{{userId}}>",
|
||||
"playerError": "{{icon}} **player.events.on('playerError')**\nMesaj: {{message}}\n\n<@{{userId}}>",
|
||||
"generalPlayerError": "{{icon}} **player.events.on('error')**\nMesaj: {{message}}\n\n<@{{userId}}>"
|
||||
}
|
||||
}
|
||||
Generated
+150
-115
@@ -10,43 +10,43 @@
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@discord-player/extractor": "^4.4.5",
|
||||
"@discord-player/extractor": "^4.4.6",
|
||||
"@discord-player/opus": "^0.1.2",
|
||||
"@discordjs/rest": "^2.2.0",
|
||||
"@prisma/client": "^5.7.1",
|
||||
"config": "^3.3.9",
|
||||
"discord-player": "^6.6.6",
|
||||
"@prisma/client": "^5.8.1",
|
||||
"config": "^3.3.10",
|
||||
"discord-player": "^6.6.7",
|
||||
"discord-voip": "^0.1.3",
|
||||
"discord.js": "^14.14.1",
|
||||
"dotenv": "^16.3.1",
|
||||
"i18next": "^23.7.11",
|
||||
"dotenv": "^16.4.1",
|
||||
"i18next": "^23.8.1",
|
||||
"i18next-fs-backend": "^2.3.1",
|
||||
"mediaplex": "^0.0.9",
|
||||
"node-os-utils": "^1.3.7",
|
||||
"pino": "^8.17.1",
|
||||
"pino": "^8.17.2",
|
||||
"youtube-ext": "^1.1.16"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/config": "^3.3.3",
|
||||
"@types/jest": "^29.5.11",
|
||||
"@types/node": "^20.10.5",
|
||||
"@types/node": "^20.11.10",
|
||||
"@types/node-os-utils": "^1.3.4",
|
||||
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
||||
"@typescript-eslint/parser": "^6.15.0",
|
||||
"@typescript-eslint/eslint-plugin": "^6.20.0",
|
||||
"@typescript-eslint/parser": "^6.20.0",
|
||||
"concurrently": "^8.2.2",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-prettier": "^5.1.2",
|
||||
"i18next-resources-for-ts": "^1.4.0",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"i18next-resources-for-ts": "^1.5.0",
|
||||
"jest": "^29.7.0",
|
||||
"nodemon": "^3.0.2",
|
||||
"prettier": "^3.1.1",
|
||||
"ts-jest": "^29.1.1",
|
||||
"nodemon": "^3.0.3",
|
||||
"prettier": "^3.2.4",
|
||||
"ts-jest": "^29.1.2",
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"pino-loki": "^2.1.3",
|
||||
"pino-pretty": "^10.3.0"
|
||||
"pino-loki": "^2.2.1",
|
||||
"pino-pretty": "^10.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@aashutoshrathi/word-wrap": {
|
||||
@@ -657,9 +657,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/runtime": {
|
||||
"version": "7.23.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.6.tgz",
|
||||
"integrity": "sha512-zHd0eUrf5GZoOWVCXp6koAKQTfZV07eit6bGPmJgnZdnSAvvZee6zniW2XMF7Cmc4ISOOnPy3QaSiIJGJkVEDQ==",
|
||||
"version": "7.23.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.7.tgz",
|
||||
"integrity": "sha512-w06OXVOFso7LcbzMiDGt+3X7Rh7Ho8MmgPoWU3rarH+8upf+wSU/grlGbWzQyr3DkdN6ZeuMFjpdwW0Q+HxobA==",
|
||||
"dependencies": {
|
||||
"regenerator-runtime": "^0.14.0"
|
||||
},
|
||||
@@ -737,9 +737,9 @@
|
||||
"integrity": "sha512-71UAepYMbHTg2QQLXQAgyuXYHrgAYpJDxjg9dRWfTUNf+zfOAlyJEiRRk/WFhQyGu6m23iLR/H/JxgF4AW8Csg=="
|
||||
},
|
||||
"node_modules/@discord-player/extractor": {
|
||||
"version": "4.4.5",
|
||||
"resolved": "https://registry.npmjs.org/@discord-player/extractor/-/extractor-4.4.5.tgz",
|
||||
"integrity": "sha512-xy4PXrjYRF2VwLkxYFEB++Q6jutvAeLv58fHTW2HI2wbyiNYI8F6+dka1X0qd7ubKl8meE+bsfkmvJssAhsmyA==",
|
||||
"version": "4.4.6",
|
||||
"resolved": "https://registry.npmjs.org/@discord-player/extractor/-/extractor-4.4.6.tgz",
|
||||
"integrity": "sha512-jo511D+YOnBptfC+mp775kVXKuCfoWulqOhk82PBmRmwNLPfzBEyPQM+vOlzrNsmoRD1p3mBBXEOnFnuyE9o3w==",
|
||||
"dependencies": {
|
||||
"file-type": "^16.5.4",
|
||||
"genius-lyrics": "^4.4.6",
|
||||
@@ -1537,9 +1537,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@prisma/client": {
|
||||
"version": "5.7.1",
|
||||
"resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.7.1.tgz",
|
||||
"integrity": "sha512-TUSa4nUcC4nf/e7X3jyO1pEd6XcI/TLRCA0KjkA46RDIpxUaRsBYEOqITwXRW2c0bMFyKcCRXrH4f7h4q9oOlg==",
|
||||
"version": "5.8.1",
|
||||
"resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.8.1.tgz",
|
||||
"integrity": "sha512-xQtMPfbIwLlbm0VVIVQY2yqQVOxPwRQhvIp7Z3m2900g1bu/zRHKhYZJQWELqmjl6d8YwBy0K2NvMqh47v1ubw==",
|
||||
"hasInstallScript": true,
|
||||
"engines": {
|
||||
"node": ">=16.13"
|
||||
@@ -1761,9 +1761,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "20.10.5",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.5.tgz",
|
||||
"integrity": "sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==",
|
||||
"version": "20.11.10",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.10.tgz",
|
||||
"integrity": "sha512-rZEfe/hJSGYmdfX9tvcPMYeYPW2sNl50nsw4jZmRcaG0HIAb0WYEpsB05GOb53vjqpyE9GUhlDQ4jLSoB5q9kg==",
|
||||
"dependencies": {
|
||||
"undici-types": "~5.26.4"
|
||||
}
|
||||
@@ -1819,16 +1819,16 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@typescript-eslint/eslint-plugin": {
|
||||
"version": "6.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.15.0.tgz",
|
||||
"integrity": "sha512-j5qoikQqPccq9QoBAupOP+CBu8BaJ8BLjaXSioDISeTZkVO3ig7oSIKh3H+rEpee7xCXtWwSB4KIL5l6hWZzpg==",
|
||||
"version": "6.20.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.20.0.tgz",
|
||||
"integrity": "sha512-fTwGQUnjhoYHeSF6m5pWNkzmDDdsKELYrOBxhjMrofPqCkoC2k3B2wvGHFxa1CTIqkEn88nlW1HVMztjo2K8Hg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/regexpp": "^4.5.1",
|
||||
"@typescript-eslint/scope-manager": "6.15.0",
|
||||
"@typescript-eslint/type-utils": "6.15.0",
|
||||
"@typescript-eslint/utils": "6.15.0",
|
||||
"@typescript-eslint/visitor-keys": "6.15.0",
|
||||
"@typescript-eslint/scope-manager": "6.20.0",
|
||||
"@typescript-eslint/type-utils": "6.20.0",
|
||||
"@typescript-eslint/utils": "6.20.0",
|
||||
"@typescript-eslint/visitor-keys": "6.20.0",
|
||||
"debug": "^4.3.4",
|
||||
"graphemer": "^1.4.0",
|
||||
"ignore": "^5.2.4",
|
||||
@@ -1854,15 +1854,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/parser": {
|
||||
"version": "6.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.15.0.tgz",
|
||||
"integrity": "sha512-MkgKNnsjC6QwcMdlNAel24jjkEO/0hQaMDLqP4S9zq5HBAUJNQB6y+3DwLjX7b3l2b37eNAxMPLwb3/kh8VKdA==",
|
||||
"version": "6.20.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.20.0.tgz",
|
||||
"integrity": "sha512-bYerPDF/H5v6V76MdMYhjwmwgMA+jlPVqjSDq2cRqMi8bP5sR3Z+RLOiOMad3nsnmDVmn2gAFCyNgh/dIrfP/w==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "6.15.0",
|
||||
"@typescript-eslint/types": "6.15.0",
|
||||
"@typescript-eslint/typescript-estree": "6.15.0",
|
||||
"@typescript-eslint/visitor-keys": "6.15.0",
|
||||
"@typescript-eslint/scope-manager": "6.20.0",
|
||||
"@typescript-eslint/types": "6.20.0",
|
||||
"@typescript-eslint/typescript-estree": "6.20.0",
|
||||
"@typescript-eslint/visitor-keys": "6.20.0",
|
||||
"debug": "^4.3.4"
|
||||
},
|
||||
"engines": {
|
||||
@@ -1882,13 +1882,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/scope-manager": {
|
||||
"version": "6.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.15.0.tgz",
|
||||
"integrity": "sha512-+BdvxYBltqrmgCNu4Li+fGDIkW9n//NrruzG9X1vBzaNK+ExVXPoGB71kneaVw/Jp+4rH/vaMAGC6JfMbHstVg==",
|
||||
"version": "6.20.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.20.0.tgz",
|
||||
"integrity": "sha512-p4rvHQRDTI1tGGMDFQm+GtxP1ZHyAh64WANVoyEcNMpaTFn3ox/3CcgtIlELnRfKzSs/DwYlDccJEtr3O6qBvA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "6.15.0",
|
||||
"@typescript-eslint/visitor-keys": "6.15.0"
|
||||
"@typescript-eslint/types": "6.20.0",
|
||||
"@typescript-eslint/visitor-keys": "6.20.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^16.0.0 || >=18.0.0"
|
||||
@@ -1899,13 +1899,13 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/type-utils": {
|
||||
"version": "6.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.15.0.tgz",
|
||||
"integrity": "sha512-CnmHKTfX6450Bo49hPg2OkIm/D/TVYV7jO1MCfPYGwf6x3GO0VU8YMO5AYMn+u3X05lRRxA4fWCz87GFQV6yVQ==",
|
||||
"version": "6.20.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.20.0.tgz",
|
||||
"integrity": "sha512-qnSobiJQb1F5JjN0YDRPHruQTrX7ICsmltXhkV536mp4idGAYrIyr47zF/JmkJtEcAVnIz4gUYJ7gOZa6SmN4g==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/typescript-estree": "6.15.0",
|
||||
"@typescript-eslint/utils": "6.15.0",
|
||||
"@typescript-eslint/typescript-estree": "6.20.0",
|
||||
"@typescript-eslint/utils": "6.20.0",
|
||||
"debug": "^4.3.4",
|
||||
"ts-api-utils": "^1.0.1"
|
||||
},
|
||||
@@ -1926,9 +1926,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/types": {
|
||||
"version": "6.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.15.0.tgz",
|
||||
"integrity": "sha512-yXjbt//E4T/ee8Ia1b5mGlbNj9fB9lJP4jqLbZualwpP2BCQ5is6BcWwxpIsY4XKAhmdv3hrW92GdtJbatC6dQ==",
|
||||
"version": "6.20.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.20.0.tgz",
|
||||
"integrity": "sha512-MM9mfZMAhiN4cOEcUOEx+0HmuaW3WBfukBZPCfwSqFnQy0grXYtngKCqpQN339X3RrwtzspWJrpbrupKYUSBXQ==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": "^16.0.0 || >=18.0.0"
|
||||
@@ -1939,16 +1939,17 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/typescript-estree": {
|
||||
"version": "6.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.15.0.tgz",
|
||||
"integrity": "sha512-7mVZJN7Hd15OmGuWrp2T9UvqR2Ecg+1j/Bp1jXUEY2GZKV6FXlOIoqVDmLpBiEiq3katvj/2n2mR0SDwtloCew==",
|
||||
"version": "6.20.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.20.0.tgz",
|
||||
"integrity": "sha512-RnRya9q5m6YYSpBN7IzKu9FmLcYtErkDkc8/dKv81I9QiLLtVBHrjz+Ev/crAqgMNW2FCsoZF4g2QUylMnJz+g==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "6.15.0",
|
||||
"@typescript-eslint/visitor-keys": "6.15.0",
|
||||
"@typescript-eslint/types": "6.20.0",
|
||||
"@typescript-eslint/visitor-keys": "6.20.0",
|
||||
"debug": "^4.3.4",
|
||||
"globby": "^11.1.0",
|
||||
"is-glob": "^4.0.3",
|
||||
"minimatch": "9.0.3",
|
||||
"semver": "^7.5.4",
|
||||
"ts-api-utils": "^1.0.1"
|
||||
},
|
||||
@@ -1965,18 +1966,42 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"balanced-match": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
|
||||
"version": "9.0.3",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz",
|
||||
"integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"brace-expansion": "^2.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16 || 14 >=14.17"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/utils": {
|
||||
"version": "6.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.15.0.tgz",
|
||||
"integrity": "sha512-eF82p0Wrrlt8fQSRL0bGXzK5nWPRV2dYQZdajcfzOD9+cQz9O7ugifrJxclB+xVOvWvagXfqS4Es7vpLP4augw==",
|
||||
"version": "6.20.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.20.0.tgz",
|
||||
"integrity": "sha512-/EKuw+kRu2vAqCoDwDCBtDRU6CTKbUmwwI7SH7AashZ+W+7o8eiyy6V2cdOqN49KsTcASWsC5QeghYuRDTyOOg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.4.0",
|
||||
"@types/json-schema": "^7.0.12",
|
||||
"@types/semver": "^7.5.0",
|
||||
"@typescript-eslint/scope-manager": "6.15.0",
|
||||
"@typescript-eslint/types": "6.15.0",
|
||||
"@typescript-eslint/typescript-estree": "6.15.0",
|
||||
"@typescript-eslint/scope-manager": "6.20.0",
|
||||
"@typescript-eslint/types": "6.20.0",
|
||||
"@typescript-eslint/typescript-estree": "6.20.0",
|
||||
"semver": "^7.5.4"
|
||||
},
|
||||
"engines": {
|
||||
@@ -1991,12 +2016,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/visitor-keys": {
|
||||
"version": "6.15.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.15.0.tgz",
|
||||
"integrity": "sha512-1zvtdC1a9h5Tb5jU9x3ADNXO9yjP8rXlaoChu0DQX40vf5ACVpYIVIZhIMZ6d5sDXH7vq4dsZBT1fEGj8D2n2w==",
|
||||
"version": "6.20.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.20.0.tgz",
|
||||
"integrity": "sha512-E8Cp98kRe4gKHjJD4NExXKz/zOJ1A2hhZc+IMVD6i7w4yjIvh6VyuRI0gRtxAsXtoC35uGMaQ9rjI2zJaXDEAw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "6.15.0",
|
||||
"@typescript-eslint/types": "6.20.0",
|
||||
"eslint-visitor-keys": "^3.4.1"
|
||||
},
|
||||
"engines": {
|
||||
@@ -2816,9 +2841,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/config": {
|
||||
"version": "3.3.9",
|
||||
"resolved": "https://registry.npmjs.org/config/-/config-3.3.9.tgz",
|
||||
"integrity": "sha512-G17nfe+cY7kR0wVpc49NCYvNtelm/pPy8czHoFkAgtV1lkmcp7DHtWCdDu+C9Z7gb2WVqa9Tm3uF9aKaPbCfhg==",
|
||||
"version": "3.3.10",
|
||||
"resolved": "https://registry.npmjs.org/config/-/config-3.3.10.tgz",
|
||||
"integrity": "sha512-9Kl3LpQ6zj93KaqgfIMTcpwTpgozFOqNl/Dk7mjras1BgGIOlqxWkyIGeU1my+sRuskRYwrCATgCk1RjAnRPGA==",
|
||||
"dependencies": {
|
||||
"json5": "^2.2.3"
|
||||
},
|
||||
@@ -3224,9 +3249,9 @@
|
||||
"integrity": "sha512-o/dXNFfhBpYHpQFdT6FWzeO7pKc838QeeZ9d91CfVAtpr5XLK4B/zYxQbYgPdoMiTDvJfzcsLW5naXgmHGDNXw=="
|
||||
},
|
||||
"node_modules/discord-player": {
|
||||
"version": "6.6.6",
|
||||
"resolved": "https://registry.npmjs.org/discord-player/-/discord-player-6.6.6.tgz",
|
||||
"integrity": "sha512-XYQU4Vuy3H1aXgdaNPajzp8od7salL5cy2JIWoUdINKv5rCVXeu24BxkPj7QB5Db6uK3yKCOumfIWkL0Il1uVQ==",
|
||||
"version": "6.6.7",
|
||||
"resolved": "https://registry.npmjs.org/discord-player/-/discord-player-6.6.7.tgz",
|
||||
"integrity": "sha512-8y5TBJTF3vut4WJZFfrc8m7yXIkOr0WNbdKiU5I3MADWZQUlRaMBTGS4NO03Vq13nZZfK0c4XVUZuqtydIKp4w==",
|
||||
"dependencies": {
|
||||
"@discord-player/equalizer": "^0.2.3",
|
||||
"@discord-player/ffmpeg": "^0.1.0",
|
||||
@@ -3239,7 +3264,7 @@
|
||||
"url": "https://github.com/Androz2091/discord-player?sponsor=1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@discord-player/extractor": "^4.4.5"
|
||||
"@discord-player/extractor": "^4.4.6"
|
||||
}
|
||||
},
|
||||
"node_modules/discord-voip": {
|
||||
@@ -3347,9 +3372,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/dotenv": {
|
||||
"version": "16.3.1",
|
||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz",
|
||||
"integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==",
|
||||
"version": "16.4.1",
|
||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.1.tgz",
|
||||
"integrity": "sha512-CjA3y+Dr3FyFDOAMnxZEGtnW9KBR2M0JvvUtXNW+dYJL5ROWxP9DUHCwgFqpMk0OXCc0ljhaNTr2w/kutYIcHQ==",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
@@ -3499,9 +3524,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-prettier": {
|
||||
"version": "5.1.2",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.2.tgz",
|
||||
"integrity": "sha512-dhlpWc9vOwohcWmClFcA+HjlvUpuyynYs0Rf+L/P6/0iQE6vlHW9l5bkfzN62/Stm9fbq8ku46qzde76T1xlSg==",
|
||||
"version": "5.1.3",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.1.3.tgz",
|
||||
"integrity": "sha512-C9GCVAs4Eq7ZC/XFQHITLiHJxQngdtraXaM+LoUFoFp/lHNl2Zn8f3WQbe9HvTBBQ9YnKFB0/2Ajdqwo5D1EAw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"prettier-linter-helpers": "^1.0.0",
|
||||
@@ -4221,9 +4246,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/i18next": {
|
||||
"version": "23.7.11",
|
||||
"resolved": "https://registry.npmjs.org/i18next/-/i18next-23.7.11.tgz",
|
||||
"integrity": "sha512-A/vOkw8vY99YHU9A1Td3I1dcTiYaPnwBWzrpVzfXUXSYgogK3cmBcmop/0cnXPc6QpUWIyqaugKNxRUEZVk9Nw==",
|
||||
"version": "23.8.1",
|
||||
"resolved": "https://registry.npmjs.org/i18next/-/i18next-23.8.1.tgz",
|
||||
"integrity": "sha512-Yhe6oiJhigSh64ev7nVVywu7vHjuUG41MRmFKNwphbkadqTL1ozZFBQISflY7/ju+gL6I/SPfI1GgWQh1yYArA==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "individual",
|
||||
@@ -4248,12 +4273,13 @@
|
||||
"integrity": "sha512-tvfXskmG/9o+TJ5Fxu54sSO5OkY6d+uMn+K6JiUGLJrwxAVfer+8V3nU8jq3ts9Pe5lXJv4b1N7foIjJ8Iy2Gg=="
|
||||
},
|
||||
"node_modules/i18next-resources-for-ts": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/i18next-resources-for-ts/-/i18next-resources-for-ts-1.4.0.tgz",
|
||||
"integrity": "sha512-NesjHO2/4/ogSl5JPD5r1YnfsJLop0J9CKfxCEuwSLNoJY3o7HhXSpnOMFI3HavlyWtKvX9u0XB8qnWBq684pQ==",
|
||||
"version": "1.5.0",
|
||||
"resolved": "https://registry.npmjs.org/i18next-resources-for-ts/-/i18next-resources-for-ts-1.5.0.tgz",
|
||||
"integrity": "sha512-gzVYct/sMeeOzomK0+8nl7YSr61xiDzf4Kg51g7StBaXAaKE/Vb1CLNHZ8dY56sYz6qmbwHRYHqMPanGi0go4w==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.23.2"
|
||||
"@babel/runtime": "^7.23.7",
|
||||
"yaml": "^2.3.4"
|
||||
},
|
||||
"bin": {
|
||||
"i18next-resources-for-ts": "bin/i18next-resources-for-ts.js"
|
||||
@@ -5747,9 +5773,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/nodemon": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.0.2.tgz",
|
||||
"integrity": "sha512-9qIN2LNTrEzpOPBaWHTm4Asy1LxXLSickZStAQ4IZe7zsoIpD/A7LWxhZV3t4Zu352uBcqVnRsDXSMR2Sc3lTA==",
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.0.3.tgz",
|
||||
"integrity": "sha512-7jH/NXbFPxVaMwmBCC2B9F/V6X1VkEdNgx3iu9jji8WxWcvhMWkmhNWhI5077zknOnZnBzba9hZP6bCPJLSReQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"chokidar": "^3.5.2",
|
||||
@@ -6096,16 +6122,16 @@
|
||||
}
|
||||
},
|
||||
"node_modules/pino": {
|
||||
"version": "8.17.1",
|
||||
"resolved": "https://registry.npmjs.org/pino/-/pino-8.17.1.tgz",
|
||||
"integrity": "sha512-YoN7/NJgnsJ+fkADZqjhRt96iepWBndQHeClmSBH0sQWCb8zGD74t00SK4eOtKFi/f8TUmQnfmgglEhd2kI1RQ==",
|
||||
"version": "8.17.2",
|
||||
"resolved": "https://registry.npmjs.org/pino/-/pino-8.17.2.tgz",
|
||||
"integrity": "sha512-LA6qKgeDMLr2ux2y/YiUt47EfgQ+S9LznBWOJdN3q1dx2sv0ziDLUBeVpyVv17TEcGCBuWf0zNtg3M5m1NhhWQ==",
|
||||
"dependencies": {
|
||||
"atomic-sleep": "^1.0.0",
|
||||
"fast-redact": "^3.1.1",
|
||||
"on-exit-leak-free": "^2.1.0",
|
||||
"pino-abstract-transport": "v1.1.0",
|
||||
"pino-std-serializers": "^6.0.0",
|
||||
"process-warning": "^2.0.0",
|
||||
"process-warning": "^3.0.0",
|
||||
"quick-format-unescaped": "^4.0.3",
|
||||
"real-require": "^0.2.0",
|
||||
"safe-stable-stringify": "^2.3.1",
|
||||
@@ -6126,14 +6152,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/pino-loki": {
|
||||
"version": "2.1.3",
|
||||
"resolved": "https://registry.npmjs.org/pino-loki/-/pino-loki-2.1.3.tgz",
|
||||
"integrity": "sha512-CRJh2u3/5JYYLEspjBRiXxKmR759Qo/yylz/efVFLr2CWERBlsndZHscDtfCzYDxT0P47fVLnbAvIAro0PEjag==",
|
||||
"version": "2.2.1",
|
||||
"resolved": "https://registry.npmjs.org/pino-loki/-/pino-loki-2.2.1.tgz",
|
||||
"integrity": "sha512-NLo9INo4lOQ8PfC0i/AZBh8xh6LCCkuGRuREq69Mw25zmoISlZiYCn5FBidagu+Cjm/dvhvt19THRhc0B71NnA==",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"commander": "^10.0.1",
|
||||
"got": "^11.8.6",
|
||||
"pino-abstract-transport": "^1.0.0",
|
||||
"pino-abstract-transport": "^1.1.0",
|
||||
"pump": "^3.0.0"
|
||||
},
|
||||
"bin": {
|
||||
@@ -6144,9 +6170,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/pino-pretty": {
|
||||
"version": "10.3.0",
|
||||
"resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.3.0.tgz",
|
||||
"integrity": "sha512-JthvQW289q3454mhM3/38wFYGWPiBMR28T3CpDNABzoTQOje9UKS7XCJQSnjWF9LQGQkGd8D7h0oq+qwiM3jFA==",
|
||||
"version": "10.3.1",
|
||||
"resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.3.1.tgz",
|
||||
"integrity": "sha512-az8JbIYeN/1iLj2t0jR9DV48/LQ3RC6hZPpapKPkb84Q+yTidMCpgWxIT3N0flnBDilyBQ1luWNpOeJptjdp/g==",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"colorette": "^2.0.7",
|
||||
@@ -6256,9 +6282,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/prettier": {
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz",
|
||||
"integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==",
|
||||
"version": "3.2.4",
|
||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.4.tgz",
|
||||
"integrity": "sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"prettier": "bin/prettier.cjs"
|
||||
@@ -6342,9 +6368,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/process-warning": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmjs.org/process-warning/-/process-warning-2.2.0.tgz",
|
||||
"integrity": "sha512-/1WZ8+VQjR6avWOgHeEPd7SDQmFQ1B5mC1eRXsCm5TarlNmx/wCsa5GEaxGm05BORRtyG/Ex/3xq3TuRvq57qg=="
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz",
|
||||
"integrity": "sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ=="
|
||||
},
|
||||
"node_modules/prompts": {
|
||||
"version": "2.4.2",
|
||||
@@ -7220,9 +7246,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/ts-jest": {
|
||||
"version": "29.1.1",
|
||||
"resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.1.tgz",
|
||||
"integrity": "sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==",
|
||||
"version": "29.1.2",
|
||||
"resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.2.tgz",
|
||||
"integrity": "sha512-br6GJoH/WUX4pu7FbZXuWGKGNDuU7b8Uj77g/Sp7puZV6EXzuByl6JrECvm0MzVzSTkSHWTihsXt+5XYER5b+g==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"bs-logger": "0.x",
|
||||
@@ -7238,7 +7264,7 @@
|
||||
"ts-jest": "cli.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
|
||||
"node": "^16.10.0 || ^18.0.0 || >=20.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@babel/core": ">=7.0.0-beta.0 <8",
|
||||
@@ -7539,6 +7565,15 @@
|
||||
"integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/yaml": {
|
||||
"version": "2.3.4",
|
||||
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.4.tgz",
|
||||
"integrity": "sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">= 14"
|
||||
}
|
||||
},
|
||||
"node_modules/yargs": {
|
||||
"version": "17.7.2",
|
||||
"resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",
|
||||
|
||||
+18
-18
@@ -30,7 +30,7 @@
|
||||
"deploy": "node ./dist/utils/deploySlashCommands.js",
|
||||
"predev": "npx prisma generate && npx prisma db push",
|
||||
"dev": "concurrently --names \"TSC,TOC,BOT\" --prefix-colors \"yellow,blue,green\" \"npx tsc -w\" \"nodemon -w locales/en -x npm run toc\" \"nodemon -x npm run start\"",
|
||||
"eslint": "eslint ./src",
|
||||
"eslint": "eslint ./src --fix",
|
||||
"prebuild": "npm run toc",
|
||||
"build": "tsc",
|
||||
"toc": "i18next-resources-for-ts interface -i ./locales/en -o ./locales/resources.d.ts",
|
||||
@@ -50,42 +50,42 @@
|
||||
"execMap": {}
|
||||
},
|
||||
"dependencies": {
|
||||
"@discord-player/extractor": "^4.4.5",
|
||||
"@discord-player/extractor": "^4.4.6",
|
||||
"@discord-player/opus": "^0.1.2",
|
||||
"@discordjs/rest": "^2.2.0",
|
||||
"@prisma/client": "^5.7.1",
|
||||
"config": "^3.3.9",
|
||||
"discord-player": "^6.6.6",
|
||||
"@prisma/client": "^5.8.1",
|
||||
"config": "^3.3.10",
|
||||
"discord-player": "^6.6.7",
|
||||
"discord-voip": "^0.1.3",
|
||||
"discord.js": "^14.14.1",
|
||||
"dotenv": "^16.3.1",
|
||||
"i18next": "^23.7.11",
|
||||
"dotenv": "^16.4.1",
|
||||
"i18next": "^23.8.1",
|
||||
"i18next-fs-backend": "^2.3.1",
|
||||
"mediaplex": "^0.0.9",
|
||||
"node-os-utils": "^1.3.7",
|
||||
"pino": "^8.17.1",
|
||||
"pino": "^8.17.2",
|
||||
"youtube-ext": "^1.1.16"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/config": "^3.3.3",
|
||||
"@types/jest": "^29.5.11",
|
||||
"@types/node": "^20.10.5",
|
||||
"@types/node": "^20.11.10",
|
||||
"@types/node-os-utils": "^1.3.4",
|
||||
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
||||
"@typescript-eslint/parser": "^6.15.0",
|
||||
"@typescript-eslint/eslint-plugin": "^6.20.0",
|
||||
"@typescript-eslint/parser": "^6.20.0",
|
||||
"concurrently": "^8.2.2",
|
||||
"eslint": "^8.56.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-prettier": "^5.1.2",
|
||||
"i18next-resources-for-ts": "^1.4.0",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"i18next-resources-for-ts": "^1.5.0",
|
||||
"jest": "^29.7.0",
|
||||
"nodemon": "^3.0.2",
|
||||
"prettier": "^3.1.1",
|
||||
"ts-jest": "^29.1.1",
|
||||
"nodemon": "^3.0.3",
|
||||
"prettier": "^3.2.4",
|
||||
"ts-jest": "^29.1.2",
|
||||
"typescript": "^5.3.3"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"pino-loki": "^2.1.3",
|
||||
"pino-pretty": "^10.3.0"
|
||||
"pino-loki": "^2.2.1",
|
||||
"pino-pretty": "^10.3.1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
import { ExtendedGuildQueuePlayerNode } from '../../types/eventTypes';
|
||||
import { randomUUID as uuidv4 } from 'node:crypto';
|
||||
import loggerModule from '../../services/logger';
|
||||
import { Track } from 'discord-player';
|
||||
import { Snowflake } from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
|
||||
// Emitted when the audio player finish playing a track.
|
||||
module.exports = {
|
||||
name: 'playerFinish',
|
||||
isDebug: false,
|
||||
isPlayerEvent: true,
|
||||
execute: async (queue: ExtendedGuildQueuePlayerNode, track: Track) => {
|
||||
const executionId: string = uuidv4();
|
||||
const logger: Logger = loggerModule.child({
|
||||
module: 'event',
|
||||
name: 'playerFinish',
|
||||
executionId: executionId,
|
||||
shardId: queue.metadata?.client.shard?.ids[0],
|
||||
guildId: queue.metadata?.channel.guild.id
|
||||
});
|
||||
|
||||
logger.debug(`playerFinish event: Track [${track.url}] finished playing.`);
|
||||
|
||||
const { lastMessage } = queue.metadata || {};
|
||||
const fetchLastAnnounceMessage =
|
||||
(await queue.metadata?.channel.messages.fetch(lastMessage?.id as Snowflake)) || undefined;
|
||||
|
||||
if (fetchLastAnnounceMessage && fetchLastAnnounceMessage.deletable) {
|
||||
try {
|
||||
await fetchLastAnnounceMessage.delete();
|
||||
} catch (error) {
|
||||
logger.error(error, 'playerFinish event: Error deleting previous now-playing message.');
|
||||
}
|
||||
}
|
||||
|
||||
logger.debug('playerFinish event: Previous now-playing message deleted.');
|
||||
}
|
||||
};
|
||||
@@ -1,8 +1,12 @@
|
||||
import { Track } from 'discord-player';
|
||||
import { randomUUID as uuidv4 } from 'node:crypto';
|
||||
import { Logger } from 'pino';
|
||||
import loggerModule from '../../services/logger';
|
||||
import { ExtendedGuildQueuePlayerNode } from '../../types/eventTypes';
|
||||
import { useLanguageTranslator } from '../../common/localeUtil';
|
||||
import { EmbedBuilder, LocaleString } from 'discord.js';
|
||||
import { EmbedOptions } from '../../types/configTypes';
|
||||
import { randomUUID as uuidv4 } from 'node:crypto';
|
||||
import loggerModule from '../../services/logger';
|
||||
import { Track } from 'discord-player';
|
||||
import { Logger } from 'pino';
|
||||
import config from 'config';
|
||||
|
||||
module.exports = {
|
||||
name: 'playerStart',
|
||||
@@ -19,5 +23,50 @@ module.exports = {
|
||||
});
|
||||
|
||||
logger.debug(`playerStart event: Started playing '${track.url}'.`);
|
||||
|
||||
const { channel, client } = queue.metadata || {};
|
||||
const embedOptions: EmbedOptions = config.get('embedOptions');
|
||||
|
||||
if (!embedOptions.behavior.enablePlayerStartMessages) {
|
||||
logger.debug('playerStart event: Player start messages are disabled, skipping now-playing message.');
|
||||
return;
|
||||
}
|
||||
|
||||
if (channel && !client?.channels.cache.get(channel.id)) {
|
||||
logger.warn(
|
||||
`playerStart event: No channel found for guild ${queue.metadata?.channel.guild.id}, cannot send now-playing message.`
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
const guildLanguage: LocaleString =
|
||||
queue.metadata?.client.guilds.cache.get(queue.metadata?.channel.guild.id)?.preferredLocale ?? 'en-US';
|
||||
const translator = useLanguageTranslator(guildLanguage);
|
||||
|
||||
const translatedEmbedMessage: string = translator('musicPlayerCommon.nowPlayingTitle', {
|
||||
icon: embedOptions.icons.audioStartedPlaying
|
||||
});
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
.setAuthor({
|
||||
name: track.requestedBy?.username as string,
|
||||
iconURL: track.requestedBy?.displayAvatarURL()
|
||||
})
|
||||
.setDescription(`${translatedEmbedMessage}\n\`${track.duration}\` [**${track.title}**](${track.url})`)
|
||||
.setThumbnail(track.thumbnail)
|
||||
.setColor(embedOptions.colors.info);
|
||||
|
||||
try {
|
||||
const announceMessage = await channel?.send({ embeds: [embed] });
|
||||
|
||||
if (queue.metadata && announceMessage) {
|
||||
queue.metadata.lastMessage = announceMessage;
|
||||
}
|
||||
} catch (error) {
|
||||
logger.error(error, 'playerStart event: Error trying to send now-playing message.');
|
||||
return;
|
||||
}
|
||||
|
||||
logger.debug('playerStart event: now-playing message sent.');
|
||||
}
|
||||
};
|
||||
@@ -5,6 +5,7 @@ import { getTrackName, isQueryTooShort, shouldUseLastQuery } from '../../common/
|
||||
import { BaseAutocompleteParams, BaseAutocompleteReturnType, RecentQuery } from '../../types/interactionTypes';
|
||||
import { TFunction } from 'i18next';
|
||||
import { useUserTranslator } from '../../common/localeUtil';
|
||||
import { transformQuery } from '../../utils/validation/searchQueryValidator';
|
||||
|
||||
class PlayAutocomplete extends BaseAutocompleteInteraction {
|
||||
private recentQueries = new Map<string, RecentQuery>();
|
||||
@@ -18,33 +19,35 @@ class PlayAutocomplete extends BaseAutocompleteInteraction {
|
||||
const logger = this.getLogger(this.name, executionId, interaction);
|
||||
const translator = useUserTranslator(interaction);
|
||||
|
||||
const query: string = interaction.options.getString('query', true);
|
||||
const searchQuery: string = interaction.options.getString('query', true);
|
||||
|
||||
const transformedQuery = transformQuery({ query: searchQuery, executionId });
|
||||
|
||||
const { lastQuery, result, timestamp } = this.recentQueries.get(interaction.user.id) || {};
|
||||
|
||||
if (shouldUseLastQuery(query, lastQuery, timestamp)) {
|
||||
logger.debug(`Responding with results from lastQuery for query '${query}'`);
|
||||
if (shouldUseLastQuery(transformedQuery, lastQuery, timestamp)) {
|
||||
logger.debug(`Responding with results from lastQuery for query '${transformedQuery}'`);
|
||||
return interaction.respond(result as ApplicationCommandOptionChoiceData<string | number>[]);
|
||||
}
|
||||
|
||||
if (isQueryTooShort(query)) {
|
||||
logger.debug(`Responding with empty results due to < 3 length for query '${query}'`);
|
||||
if (isQueryTooShort(transformedQuery)) {
|
||||
logger.debug(`Responding with empty results due to < 3 length for query '${transformedQuery}'`);
|
||||
return interaction.respond([]);
|
||||
}
|
||||
|
||||
const autocompleteChoices: ApplicationCommandOptionChoiceData<string>[] = await this.getAutocompleteChoices(
|
||||
query,
|
||||
transformedQuery,
|
||||
translator
|
||||
);
|
||||
|
||||
if (!autocompleteChoices || autocompleteChoices.length === 0) {
|
||||
logger.debug(`Responding with empty results for query '${query}'`);
|
||||
logger.debug(`Responding with empty results for query '${transformedQuery}'`);
|
||||
return interaction.respond([]);
|
||||
}
|
||||
|
||||
this.updateRecentQuery(interaction.user.id, query, autocompleteChoices);
|
||||
this.updateRecentQuery(interaction.user.id, transformedQuery, autocompleteChoices);
|
||||
|
||||
logger.debug(`Responding to autocomplete with results for query: '${query}'.`);
|
||||
logger.debug(`Responding to autocomplete with results for query: '${transformedQuery}'.`);
|
||||
return interaction.respond(autocompleteChoices);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,102 +0,0 @@
|
||||
import { EmbedBuilder, Guild, SlashCommandBuilder } from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { ExtendedClient } from '../../../types/clientTypes';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkValidGuildId } from '../../../utils/validation/systemCommandValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { TFunction } from 'i18next';
|
||||
|
||||
class GuildsCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
const data = localizeCommand(new SlashCommandBuilder().setName('guilds'));
|
||||
const isSystemCommand: boolean = true;
|
||||
super(data, isSystemCommand);
|
||||
}
|
||||
|
||||
async execute(params: BaseSlashCommandParams): BaseSlashCommandReturnType {
|
||||
const { executionId, interaction, client } = params;
|
||||
const logger = this.getLogger(this.name, executionId, interaction);
|
||||
const translator = useServerTranslator(interaction);
|
||||
|
||||
await this.runValidators({ interaction, executionId }, [checkValidGuildId]);
|
||||
|
||||
const shardGuilds = await this.fetchShardGuilds(client!, logger);
|
||||
const totalGuildCount = shardGuilds.length;
|
||||
|
||||
logger.debug(`Successfully fetched ${totalGuildCount} guilds.`);
|
||||
|
||||
const guildListFormatted = this.formatGuildListAsString(shardGuilds);
|
||||
const totalMemberCount = this.calculateTotalMemberCount(shardGuilds);
|
||||
|
||||
let embedDescription = this.buildEmbedDescription(
|
||||
totalGuildCount,
|
||||
guildListFormatted,
|
||||
totalMemberCount,
|
||||
translator
|
||||
);
|
||||
|
||||
if (embedDescription.length >= 4000) {
|
||||
logger.debug('Embed description is too long, truncating.');
|
||||
embedDescription = `${embedDescription.slice(0, 3996)}...`;
|
||||
}
|
||||
|
||||
logger.debug('Responding with info embed.');
|
||||
return await interaction.editReply({
|
||||
embeds: [new EmbedBuilder().setDescription(embedDescription).setColor(this.embedOptions.colors.info)]
|
||||
});
|
||||
}
|
||||
|
||||
private async fetchShardGuilds(client: ExtendedClient, logger: Logger): Promise<Guild[]> {
|
||||
logger.debug('Fetching guilds from all shards.');
|
||||
const guilds = await client!.shard!.broadcastEval((c) => c.guilds.cache.map((guild) => guild));
|
||||
return guilds.flat(1) as Guild[];
|
||||
}
|
||||
|
||||
private formatGuildListAsString(shardGuilds: Guild[]): string {
|
||||
const guilds = this.mapGuilds(shardGuilds);
|
||||
const topGuilds = this.getTopGuilds(guilds);
|
||||
return this.guildsToString(topGuilds);
|
||||
}
|
||||
|
||||
private mapGuilds(shardGuilds: Guild[]) {
|
||||
return shardGuilds.map((guild) => ({ name: guild.name, memberCount: guild.memberCount }));
|
||||
}
|
||||
|
||||
private getTopGuilds(guilds: { name: string; memberCount: number }[]) {
|
||||
return guilds.sort((a, b) => b.memberCount - a.memberCount).slice(0, 25);
|
||||
}
|
||||
|
||||
private guildsToString(guilds: { name: string; memberCount: number }[]) {
|
||||
return guilds.map((guild, index) => `${index + 1}. \`${guild.name} (#${guild.memberCount})\``).join('\n');
|
||||
}
|
||||
|
||||
private calculateTotalMemberCount(shardGuilds: Guild[]): number {
|
||||
return shardGuilds.reduce((a, b) => a + b.memberCount, 0);
|
||||
}
|
||||
|
||||
private buildEmbedDescription(
|
||||
totalGuildCount: number,
|
||||
guildListFormattedString: string,
|
||||
totalMemberCount: number,
|
||||
translator: TFunction
|
||||
): string {
|
||||
const guildCount = Math.max(totalGuildCount, 25);
|
||||
return (
|
||||
translator('commands.guilds.topGuildsByMemberCount', {
|
||||
icon: this.embedOptions.icons.bot,
|
||||
count: guildCount,
|
||||
totalCount: totalGuildCount
|
||||
}) +
|
||||
'\n' +
|
||||
guildListFormattedString +
|
||||
'\n' +
|
||||
'\n' +
|
||||
translator('commands.guilds.totalMembers', {
|
||||
count: totalMemberCount
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default new GuildsCommand();
|
||||
@@ -1,13 +1,13 @@
|
||||
import { GuildQueue, GuildQueueHistory, Track, useHistory, useQueue } from 'discord-player';
|
||||
import { ChatInputCommandInteraction, EmbedBuilder, SlashCommandBuilder } from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkHistoryExists, checkQueueCurrentTrack } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkHistoryExists, checkQueueCurrentTrack } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { Logger } from 'pino';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { TFunction } from 'i18next';
|
||||
import { formatSlashCommand } from '../../../common/formattingUtils';
|
||||
import { formatSlashCommand } from '../../common/formattingUtils';
|
||||
|
||||
class BackCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
+6
-6
@@ -16,17 +16,17 @@ import {
|
||||
StringSelectMenuOptionBuilder
|
||||
} from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import {
|
||||
BiquadFilterOptions,
|
||||
EqualizerFilterOptions,
|
||||
FFmpegFilterOptions,
|
||||
FilterOption
|
||||
} from '../../../types/configTypes';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
} from '../../types/configTypes';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { TFunction } from 'i18next';
|
||||
|
||||
const ffmpegFilterOptions: FFmpegFilterOptions = config.get('ffmpegFilterOptions');
|
||||
@@ -13,10 +13,10 @@ import {
|
||||
SlashCommandNumberOption,
|
||||
SlashCommandStringOption
|
||||
} from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { CommandMetadata, localizeCommand, translatorInstance, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { ExtendedClient } from '../../../types/clientTypes';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { CommandMetadata, localizeCommand, translatorInstance, useServerTranslator } from '../../common/localeUtil';
|
||||
import { ExtendedClient } from '../../types/clientTypes';
|
||||
|
||||
class HelpCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
+6
-6
@@ -12,13 +12,13 @@ import {
|
||||
SlashCommandBuilder
|
||||
} from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkHistoryExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkHistoryExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { TFunction } from 'i18next';
|
||||
import { formatRepeatModeDetailed, formatSlashCommand } from '../../../common/formattingUtils';
|
||||
import { formatRepeatModeDetailed, formatSlashCommand } from '../../common/formattingUtils';
|
||||
|
||||
class HistoryCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
@@ -1,12 +1,12 @@
|
||||
import { GuildQueue, useMainPlayer, useQueue } from 'discord-player';
|
||||
import { ChatInputCommandInteraction, EmbedBuilder, GuildMember, Message, SlashCommandBuilder } from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkInVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { checkVoicePermissionJoinAndTalk } from '../../../utils/validation/permissionValidator';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkInVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { checkVoicePermissionJoinAndTalk } from '../../utils/validation/permissionValidator';
|
||||
import { Logger } from 'pino';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { formatSlashCommand } from '../../../common/formattingUtils';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { formatSlashCommand } from '../../common/formattingUtils';
|
||||
import { TFunction } from 'i18next';
|
||||
|
||||
class JoinCommand extends BaseSlashCommandInteraction {
|
||||
@@ -1,11 +1,11 @@
|
||||
import { GuildQueue, useQueue } from 'discord-player';
|
||||
import { EmbedBuilder, SlashCommandBuilder } from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { formatSlashCommand } from '../../../common/formattingUtils';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { formatSlashCommand } from '../../common/formattingUtils';
|
||||
|
||||
class LeaveCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
@@ -7,13 +7,13 @@ import {
|
||||
SlashCommandIntegerOption
|
||||
} from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { TFunction } from 'i18next';
|
||||
import { formatRepeatMode } from '../../../common/formattingUtils';
|
||||
import { formatRepeatMode } from '../../common/formattingUtils';
|
||||
|
||||
class LoopCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
+5
-5
@@ -2,11 +2,11 @@ import { LyricsData, lyricsExtractor } from '@discord-player/extractor';
|
||||
import { GuildQueue, Player, QueryType, SearchResult, Track, useMainPlayer, useQueue } from 'discord-player';
|
||||
import { ChatInputCommandInteraction, EmbedBuilder, Message, SlashCommandBuilder } from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { TFunction } from 'i18next';
|
||||
|
||||
class LyricsCommand extends BaseSlashCommandInteraction {
|
||||
@@ -1,13 +1,13 @@
|
||||
import { GuildQueue, Track, useQueue } from 'discord-player';
|
||||
import { ChatInputCommandInteraction, EmbedBuilder, SlashCommandBuilder } from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { Logger } from 'pino';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { TFunction } from 'i18next';
|
||||
import { formatSlashCommand } from '../../../common/formattingUtils';
|
||||
import { formatSlashCommand } from '../../common/formattingUtils';
|
||||
|
||||
class MoveCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
+6
-6
@@ -10,13 +10,13 @@ import {
|
||||
EmbedField,
|
||||
SlashCommandBuilder
|
||||
} from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType, TrackMetadata } from '../../../types/interactionTypes';
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType, TrackMetadata } from '../../types/interactionTypes';
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { TFunction } from 'i18next';
|
||||
import { formatRepeatModeDetailed } from '../../../common/formattingUtils';
|
||||
import { formatRepeatModeDetailed } from '../../common/formattingUtils';
|
||||
|
||||
class NowPlayingCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
@@ -1,11 +1,11 @@
|
||||
import { GuildQueue, Track, useQueue } from 'discord-player';
|
||||
import { EmbedBuilder, SlashCommandBuilder } from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
|
||||
class PauseCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
@@ -8,14 +8,14 @@ import {
|
||||
SlashCommandBuilder
|
||||
} from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import { BaseSlashCommandInteraction, CustomError } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkVoicePermissionJoinAndTalk } from '../../../utils/validation/permissionValidator';
|
||||
import { transformQuery } from '../../../utils/validation/searchQueryValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { BaseSlashCommandInteraction, CustomError } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkVoicePermissionJoinAndTalk } from '../../utils/validation/permissionValidator';
|
||||
import { transformQuery } from '../../utils/validation/searchQueryValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { TFunction } from 'i18next';
|
||||
import { formatSlashCommand } from '../../../common/formattingUtils';
|
||||
import { formatSlashCommand } from '../../common/formattingUtils';
|
||||
|
||||
class PlayCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
@@ -190,13 +190,15 @@ class PlayCommand extends BaseSlashCommandInteraction {
|
||||
embedFooter = this.getDisplayFooterTrackPosition(posistionFirstTrackInPlaylist, translator);
|
||||
}
|
||||
} else if (queue.currentTrack === track && queue.tracks.data.length === 0) {
|
||||
message =
|
||||
translator('musicPlayerCommon.nowPlayingTitle', {
|
||||
icon: this.embedOptions.icons.audioStartedPlaying
|
||||
}) +
|
||||
'\n' +
|
||||
trackUrl;
|
||||
embedFooter = undefined;
|
||||
if (!this.embedOptions.behavior.enablePlayerStartMessages) {
|
||||
message =
|
||||
translator('musicPlayerCommon.nowPlayingTitle', {
|
||||
icon: this.embedOptions.icons.audioStartedPlaying
|
||||
}) +
|
||||
'\n' +
|
||||
trackUrl;
|
||||
embedFooter = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
@@ -12,12 +12,12 @@ import {
|
||||
SlashCommandBuilder
|
||||
} from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { formatDuration, formatRepeatModeDetailed, formatSlashCommand } from '../../../common/formattingUtils';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { formatDuration, formatRepeatModeDetailed, formatSlashCommand } from '../../common/formattingUtils';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { TFunction } from 'i18next';
|
||||
|
||||
class QueueCommand extends BaseSlashCommandInteraction {
|
||||
+5
-5
@@ -6,11 +6,11 @@ import {
|
||||
SlashCommandBuilder
|
||||
} from 'discord.js';
|
||||
import { Logger } from 'pino';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { ExtendedClient } from '../../../types/clientTypes';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkValidGuildId } from '../../../utils/validation/systemCommandValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { ExtendedClient } from '../../types/clientTypes';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkValidGuildId } from '../../utils/validation/systemCommandValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { TFunction } from 'i18next';
|
||||
|
||||
class ReloadCommand extends BaseSlashCommandInteraction {
|
||||
+6
-6
@@ -1,13 +1,13 @@
|
||||
import { GuildQueue, Track, useQueue } from 'discord-player';
|
||||
import { ChatInputCommandInteraction, EmbedBuilder, SlashCommandBuilder } from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { Logger } from 'pino';
|
||||
import { TFunction } from 'i18next';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { formatSlashCommand } from '../../../common/formattingUtils';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { formatSlashCommand } from '../../common/formattingUtils';
|
||||
|
||||
class RemoveCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
@@ -1,13 +1,13 @@
|
||||
import { GuildQueue, useQueue } from 'discord-player';
|
||||
import { ChatInputCommandInteraction, EmbedBuilder, Message, SlashCommandBuilder } from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { Logger } from 'pino';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { TFunction } from 'i18next';
|
||||
import { formatSlashCommand } from '../../../common/formattingUtils';
|
||||
import { formatSlashCommand } from '../../common/formattingUtils';
|
||||
|
||||
class SeekCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
+5
-5
@@ -5,12 +5,12 @@ import {
|
||||
EmbedFooterData,
|
||||
SlashCommandBuilder
|
||||
} from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { ExtendedClient } from '../../../types/clientTypes';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType, ShardInfo } from '../../../types/interactionTypes';
|
||||
import { checkValidGuildId } from '../../../utils/validation/systemCommandValidator';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { ExtendedClient } from '../../types/clientTypes';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType, ShardInfo } from '../../types/interactionTypes';
|
||||
import { checkValidGuildId } from '../../utils/validation/systemCommandValidator';
|
||||
import { Logger } from 'pino';
|
||||
import { localizeCommand } from '../../../common/localeUtil';
|
||||
import { localizeCommand } from '../../common/localeUtil';
|
||||
|
||||
class ShardsCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
+6
-6
@@ -1,11 +1,11 @@
|
||||
import { GuildQueue, useQueue } from 'discord-player';
|
||||
import { EmbedBuilder, SlashCommandBuilder } from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkQueueEmpty, checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { formatSlashCommand } from '../../../common/formattingUtils';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkQueueEmpty, checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { formatSlashCommand } from '../../common/formattingUtils';
|
||||
|
||||
class ShuffleCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
@@ -1,13 +1,13 @@
|
||||
import { GuildQueue, Track, useQueue } from 'discord-player';
|
||||
import { ChatInputCommandInteraction, EmbedBuilder, SlashCommandBuilder } from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { Logger } from 'pino';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { TFunction } from 'i18next';
|
||||
import { formatRepeatModeDetailed, formatSlashCommand } from '../../../common/formattingUtils';
|
||||
import { formatRepeatModeDetailed, formatSlashCommand } from '../../common/formattingUtils';
|
||||
|
||||
class SkipCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
@@ -1,5 +1,5 @@
|
||||
// @ts-ignore
|
||||
import { version } from '../../../../package.json';
|
||||
import { version } from '../../../package.json';
|
||||
import {
|
||||
APIActionRowComponent,
|
||||
APIButtonComponent,
|
||||
@@ -10,10 +10,10 @@ import {
|
||||
EmbedBuilder,
|
||||
SlashCommandBuilder
|
||||
} from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { getBotStatistics, getDiscordStatus, getPlayerStatistics, getSystemStatus } from '../../../common/statusUtils';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { getBotStatistics, getDiscordStatus, getPlayerStatistics, getSystemStatus } from '../../common/statusUtils';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
|
||||
class StatusCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
@@ -1,11 +1,11 @@
|
||||
import { GuildQueue, QueueRepeatMode, useQueue } from 'discord-player';
|
||||
import { EmbedBuilder, SlashCommandBuilder } from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { formatSlashCommand } from '../../../common/formattingUtils';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { formatSlashCommand } from '../../common/formattingUtils';
|
||||
|
||||
class StopCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
+6
-6
@@ -1,11 +1,11 @@
|
||||
// @ts-ignore
|
||||
import { dependencies, version } from '../../../../package.json';
|
||||
import { dependencies, version } from '../../../package.json';
|
||||
import { EmbedBuilder, SlashCommandBuilder } from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { getBotStatistics, getDiscordStatus, getPlayerStatistics, getSystemStatus } from '../../../common/statusUtils';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkValidGuildId } from '../../../utils/validation/systemCommandValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { getBotStatistics, getDiscordStatus, getPlayerStatistics, getSystemStatus } from '../../common/statusUtils';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkValidGuildId } from '../../utils/validation/systemCommandValidator';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
|
||||
class SystemStatusCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
+5
-5
@@ -1,11 +1,11 @@
|
||||
import { GuildQueue, useQueue } from 'discord-player';
|
||||
import { ChatInputCommandInteraction, EmbedBuilder, SlashCommandBuilder } from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { BaseSlashCommandInteraction } from '../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../types/interactionTypes';
|
||||
import { checkQueueExists } from '../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../utils/validation/voiceChannelValidator';
|
||||
import { Logger } from 'pino';
|
||||
import { localizeCommand, useServerTranslator } from '../../../common/localeUtil';
|
||||
import { localizeCommand, useServerTranslator } from '../../common/localeUtil';
|
||||
import { TFunction } from 'i18next';
|
||||
|
||||
class VolumeCommand extends BaseSlashCommandInteraction {
|
||||
@@ -1,4 +1,4 @@
|
||||
import helpCommand from '../interactions/commands/info/help';
|
||||
import helpCommand from '../interactions/slashcommands/help';
|
||||
import { SlashCommandNumberOption } from 'discord.js';
|
||||
import { BaseSlashCommandInteraction } from '../classes/interactions';
|
||||
|
||||
|
||||
Vendored
+3
@@ -43,6 +43,9 @@ export type EmbedOptions = {
|
||||
components: {
|
||||
showButtonLabels: boolean;
|
||||
};
|
||||
behavior: {
|
||||
enablePlayerStartMessages: boolean;
|
||||
};
|
||||
icons: {
|
||||
logo: string;
|
||||
beta: string;
|
||||
|
||||
Vendored
+2
-1
@@ -1,5 +1,5 @@
|
||||
import { BaseGuildTextChannel, Message } from 'discord.js';
|
||||
import { GuildQueuePlayerNode } from 'discord-player';
|
||||
import { BaseGuildTextChannel } from 'discord.js';
|
||||
import { ExtendedClient } from './clientTypes';
|
||||
|
||||
export type ClientEventArguments = unknown[];
|
||||
@@ -12,5 +12,6 @@ export type ExtendedGuildQueuePlayerNode = {
|
||||
| {
|
||||
client: ExtendedClient;
|
||||
channel: BaseGuildTextChannel;
|
||||
lastMessage: Message;
|
||||
};
|
||||
} & GuildQueuePlayerNode<unknown>;
|
||||
@@ -20,7 +20,6 @@ const logger: Logger = loggerModule.child({
|
||||
|
||||
const userSlashCommands: RESTPostAPIChatInputApplicationCommandsJSONBody[] = [];
|
||||
const systemSlashCommands: RESTPostAPIChatInputApplicationCommandsJSONBody[] = [];
|
||||
const commandFolders: string[] = fs.readdirSync(path.resolve('./dist/interactions/commands'));
|
||||
|
||||
if (!process.env.DISCORD_BOT_TOKEN) {
|
||||
throw new Error('DISCORD_BOT_TOKEN environment variable is not set.');
|
||||
@@ -40,18 +39,16 @@ const rest: REST = new REST({ version: '10' }).setToken(process.env.DISCORD_BOT_
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
for (const folder of commandFolders) {
|
||||
const commandFiles: string[] = fs
|
||||
.readdirSync(path.resolve(`./dist/interactions/commands/${folder}`))
|
||||
.filter((file) => file.endsWith('.js'));
|
||||
const commandFiles: string[] = fs
|
||||
.readdirSync(path.resolve('./dist/interactions/slashcommands'))
|
||||
.filter((file) => file.endsWith('.js'));
|
||||
|
||||
for (const file of commandFiles) {
|
||||
const { default: command } = await import(`../interactions/commands/${folder}/${file}`);
|
||||
const slashCommand = command as BaseSlashCommandInteraction;
|
||||
slashCommand.isSystemCommand
|
||||
? systemSlashCommands.push(slashCommand.data.toJSON())
|
||||
: userSlashCommands.push(slashCommand.data.toJSON());
|
||||
}
|
||||
for (const file of commandFiles) {
|
||||
const { default: command } = await import(`../interactions/slashcommands/${file}`);
|
||||
const slashCommand = command as BaseSlashCommandInteraction;
|
||||
slashCommand.isSystemCommand
|
||||
? systemSlashCommands.push(slashCommand.data.toJSON())
|
||||
: userSlashCommands.push(slashCommand.data.toJSON());
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
@@ -25,35 +25,28 @@ async function registerSlashCommandInteractions(logger: Logger, client: Extended
|
||||
logger.debug('Registering client slash command interactions...');
|
||||
client.slashCommandInteractions = new Collection();
|
||||
|
||||
const baseFolderPath = './dist/interactions/commands';
|
||||
const slashCommandInteractionFolders: string[] = fs.readdirSync(path.resolve(baseFolderPath));
|
||||
const basePath = './dist/interactions/slashcommands';
|
||||
|
||||
for (const categoryFolder of slashCommandInteractionFolders) {
|
||||
logger.trace(`Registering client commands for folder '${categoryFolder}'...`);
|
||||
logger.trace('Registering client commands...');
|
||||
|
||||
const files: string[] = fs
|
||||
.readdirSync(path.resolve(`${baseFolderPath}/${categoryFolder}`))
|
||||
.filter((file) => file.endsWith('.js'));
|
||||
const files: string[] = fs.readdirSync(path.resolve(`${basePath}`)).filter((file) => file.endsWith('.js'));
|
||||
|
||||
for (const file of files) {
|
||||
try {
|
||||
const filePath = path.resolve(`${baseFolderPath}/${categoryFolder}/${file}`);
|
||||
for (const file of files) {
|
||||
try {
|
||||
const filePath = path.resolve(`${basePath}/${file}`);
|
||||
|
||||
// delete require cache for file
|
||||
delete require.cache[filePath];
|
||||
// delete require cache for file
|
||||
delete require.cache[filePath];
|
||||
|
||||
// import and register to client collection
|
||||
const { default: slashCommandInteraction } = await import(filePath);
|
||||
client.slashCommandInteractions.delete(slashCommandInteraction.name);
|
||||
client.slashCommandInteractions.set(slashCommandInteraction.name, slashCommandInteraction);
|
||||
} catch (error) {
|
||||
if (error instanceof Error) {
|
||||
logger.error(
|
||||
`Error registering slash command interaction '${categoryFolder}/${file}': ${error.message}`
|
||||
);
|
||||
} else {
|
||||
throw error;
|
||||
}
|
||||
// import and register to client collection
|
||||
const { default: slashCommandInteraction } = await import(filePath);
|
||||
client.slashCommandInteractions.delete(slashCommandInteraction.name);
|
||||
client.slashCommandInteractions.set(slashCommandInteraction.name, slashCommandInteraction);
|
||||
} catch (error) {
|
||||
if (error instanceof Error) {
|
||||
logger.error(`Error registering slash command interaction '${file}': ${error.message}`);
|
||||
} else {
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,6 +27,15 @@ export const transformQuery = ({ query, executionId }: TransformQueryParams) =>
|
||||
query = `https://open.spotify.com/${type}/${trackId}`;
|
||||
}
|
||||
}
|
||||
|
||||
// if /track/id is in url TWICE, remove the second one, e.g. https://open.spotify.com/track/123/track/123
|
||||
const trackIdRegex: RegExp = new RegExp('https://open.spotify.com/track/([a-zA-Z0-9]+)');
|
||||
const trackIdMatches: RegExpMatchArray | null = query.match(trackIdRegex);
|
||||
if (trackIdMatches) {
|
||||
logger.debug(`Transforming Spotify url to remove duplicate track id from query '${query}'.`);
|
||||
const trackId: string = trackIdMatches[1];
|
||||
query = `https://open.spotify.com/track/${trackId}`;
|
||||
}
|
||||
} catch (error) {
|
||||
logger.error(error, 'Error while validating or transforming Spotify url.');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user