From a6f4650ca53e109a56e7d3153fe49ab83b4239ec Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Wed, 27 Dec 2023 06:09:44 +0100 Subject: [PATCH 01/41] update translations from Crowdin --- locales/es-ES/bot.json | 510 ++++++++++++++++++++--------------------- locales/no/bot.json | 32 +-- locales/ro/bot.json | 38 ++- 3 files changed, 275 insertions(+), 305 deletions(-) diff --git a/locales/es-ES/bot.json b/locales/es-ES/bot.json index c1ea2e2..9e0426a 100644 --- a/locales/es-ES/bot.json +++ b/locales/es-ES/bot.json @@ -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": "Muestra 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": "historia", + "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": "Muestra 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": "Muestra 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": "Muestra información sobre todos los shards 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": "Muestra 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": "Información del sistema", + "description": "Muestra el estado operativo del bot con información técnica adicional." } }, "volume": { "metadata": { - "name": "", - "description": "", + "name": "volumen", + "description": "Muestra 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}}>" } } diff --git a/locales/no/bot.json b/locales/no/bot.json index ba2cd46..0a234e2 100644 --- a/locales/no/bot.json +++ b/locales/no/bot.json @@ -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å**", diff --git a/locales/ro/bot.json b/locales/ro/bot.json index 90b965f..3159fc8 100644 --- a/locales/ro/bot.json +++ b/locales/ro/bot.json @@ -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": "", + "trackReplayed": "" }, "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": "", "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": "" }, "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": "", "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": "", "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": "" }, "reload": { "metadata": { @@ -276,12 +270,10 @@ }, "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": "", "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": "" }, "seek": { "metadata": { @@ -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": "" }, "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": "", "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**", @@ -475,8 +465,8 @@ "generalPlayerError": "" }, "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}}>" } } From ba9489175a42321a223353c791894a3e9d0ec2ad Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 16:15:28 +0000 Subject: [PATCH 02/41] chore(deps-dev): bump @typescript-eslint/parser from 6.15.0 to 6.16.0 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.15.0 to 6.16.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.16.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 115 ++++++++++++++++++++++++++++++++++++++++++---- package.json | 2 +- 2 files changed, 108 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index b9a2ade..b43a9ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "@types/node": "^20.10.5", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.15.0", - "@typescript-eslint/parser": "^6.15.0", + "@typescript-eslint/parser": "^6.16.0", "concurrently": "^8.2.2", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", @@ -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.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.16.0.tgz", + "integrity": "sha512-H2GM3eUo12HpKZU9njig3DF5zJ58ja6ahj1GoHEHOgQvYxzoFJJEvC1MQ7T2l9Ha+69ZSOn7RTxOdpC/y3ikMw==", "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.16.0", + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/typescript-estree": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.0", "debug": "^4.3.4" }, "engines": { @@ -1881,6 +1881,105 @@ } } }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": { + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.16.0.tgz", + "integrity": "sha512-0N7Y9DSPdaBQ3sqSCwlrm9zJwkpOuc6HYm7LpzLAPqBL7dmzAUimr4M29dMkOP/tEwvOCC/Cxo//yOfJD3HUiw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.0" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": { + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.16.0.tgz", + "integrity": "sha512-hvDFpLEvTJoHutVl87+MG/c5C8I6LOgEx05zExTSJDEVU7hhR3jhV8M5zuggbdFCw98+HhZWPHZeKS97kS3JoQ==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.16.0.tgz", + "integrity": "sha512-VTWZuixh/vr7nih6CfrdpmFNLEnoVBF1skfjdyGnNwXOH1SLeHItGdZDHhhAIzd3ACazyY2Fg76zuzOVTaknGA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.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" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.16.0.tgz", + "integrity": "sha512-QSFQLruk7fhs91a/Ep/LqRdbJCZ1Rq03rqBdKT5Ky17Sz8zRLUksqIe9DW0pKtg/Z35/ztbLQ6qpOCN6rOC11A==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.16.0", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/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/parser/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/scope-manager": { "version": "6.15.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.15.0.tgz", diff --git a/package.json b/package.json index da0fb80..e9b4980 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "@types/node": "^20.10.5", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.15.0", - "@typescript-eslint/parser": "^6.15.0", + "@typescript-eslint/parser": "^6.16.0", "concurrently": "^8.2.2", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", From c2098816de6d743a4bc49fa8bf1521e8f5b7326a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 16:18:53 +0000 Subject: [PATCH 03/41] chore(deps-dev): bump @typescript-eslint/eslint-plugin Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.15.0 to 6.16.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.16.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 174 +++++++++++++--------------------------------- package.json | 2 +- 2 files changed, 51 insertions(+), 125 deletions(-) diff --git a/package-lock.json b/package-lock.json index b43a9ee..0fda1eb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ "@types/jest": "^29.5.11", "@types/node": "^20.10.5", "@types/node-os-utils": "^1.3.4", - "@typescript-eslint/eslint-plugin": "^6.15.0", + "@typescript-eslint/eslint-plugin": "^6.16.0", "@typescript-eslint/parser": "^6.16.0", "concurrently": "^8.2.2", "eslint": "^8.56.0", @@ -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.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.16.0.tgz", + "integrity": "sha512-O5f7Kv5o4dLWQtPX4ywPPa+v9G+1q1x8mz0Kr0pXUtKsevo+gIJHLkGc8RxaZWtP8RrhwhSNIWThnW42K9/0rQ==", "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.16.0", + "@typescript-eslint/type-utils": "6.16.0", + "@typescript-eslint/utils": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.0", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -1881,7 +1881,7 @@ } } }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": { + "node_modules/@typescript-eslint/scope-manager": { "version": "6.16.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.16.0.tgz", "integrity": "sha512-0N7Y9DSPdaBQ3sqSCwlrm9zJwkpOuc6HYm7LpzLAPqBL7dmzAUimr4M29dMkOP/tEwvOCC/Cxo//yOfJD3HUiw==", @@ -1898,7 +1898,34 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": { + "node_modules/@typescript-eslint/type-utils": { + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.16.0.tgz", + "integrity": "sha512-ThmrEOcARmOnoyQfYkHw/DX2SEYBalVECmoldVuH6qagKROp/jMnfXpAU/pAIWub9c4YTxga+XwgAkoA0pxfmg==", + "dev": true, + "dependencies": { + "@typescript-eslint/typescript-estree": "6.16.0", + "@typescript-eslint/utils": "6.16.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { "version": "6.16.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.16.0.tgz", "integrity": "sha512-hvDFpLEvTJoHutVl87+MG/c5C8I6LOgEx05zExTSJDEVU7hhR3jhV8M5zuggbdFCw98+HhZWPHZeKS97kS3JoQ==", @@ -1911,7 +1938,7 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { + "node_modules/@typescript-eslint/typescript-estree": { "version": "6.16.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.16.0.tgz", "integrity": "sha512-VTWZuixh/vr7nih6CfrdpmFNLEnoVBF1skfjdyGnNwXOH1SLeHItGdZDHhhAIzd3ACazyY2Fg76zuzOVTaknGA==", @@ -1939,24 +1966,7 @@ } } }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { - "version": "6.16.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.16.0.tgz", - "integrity": "sha512-QSFQLruk7fhs91a/Ep/LqRdbJCZ1Rq03rqBdKT5Ky17Sz8zRLUksqIe9DW0pKtg/Z35/ztbLQ6qpOCN6rOC11A==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.16.0", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/parser/node_modules/brace-expansion": { + "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==", @@ -1965,7 +1975,7 @@ "balanced-match": "^1.0.0" } }, - "node_modules/@typescript-eslint/parser/node_modules/minimatch": { + "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==", @@ -1980,102 +1990,18 @@ "url": "https://github.com/sponsors/isaacs" } }, - "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==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.15.0", - "@typescript-eslint/visitor-keys": "6.15.0" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "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==", - "dev": true, - "dependencies": { - "@typescript-eslint/typescript-estree": "6.15.0", - "@typescript-eslint/utils": "6.15.0", - "debug": "^4.3.4", - "ts-api-utils": "^1.0.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "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==", - "dev": true, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "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==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.15.0", - "@typescript-eslint/visitor-keys": "6.15.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.5.4", - "ts-api-utils": "^1.0.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "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.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.16.0.tgz", + "integrity": "sha512-T83QPKrBm6n//q9mv7oiSvy/Xq/7Hyw9SzSEhMHJwznEmQayfBM87+oAlkNAMEO7/MjIwKyOHgBJbxB0s7gx2A==", "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.16.0", + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/typescript-estree": "6.16.0", "semver": "^7.5.4" }, "engines": { @@ -2090,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.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.16.0.tgz", + "integrity": "sha512-QSFQLruk7fhs91a/Ep/LqRdbJCZ1Rq03rqBdKT5Ky17Sz8zRLUksqIe9DW0pKtg/Z35/ztbLQ6qpOCN6rOC11A==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.15.0", + "@typescript-eslint/types": "6.16.0", "eslint-visitor-keys": "^3.4.1" }, "engines": { diff --git a/package.json b/package.json index e9b4980..753ad4d 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "@types/jest": "^29.5.11", "@types/node": "^20.10.5", "@types/node-os-utils": "^1.3.4", - "@typescript-eslint/eslint-plugin": "^6.15.0", + "@typescript-eslint/eslint-plugin": "^6.16.0", "@typescript-eslint/parser": "^6.16.0", "concurrently": "^8.2.2", "eslint": "^8.56.0", From 10513baf19a40dfdfdeb4e1d0eae433463a7fceb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 16:18:58 +0000 Subject: [PATCH 04/41] chore(deps-dev): bump @types/node from 20.10.5 to 20.10.6 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.10.5 to 20.10.6. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index b43a9ee..f717f5b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "devDependencies": { "@types/config": "^3.3.3", "@types/jest": "^29.5.11", - "@types/node": "^20.10.5", + "@types/node": "^20.10.6", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.15.0", "@typescript-eslint/parser": "^6.16.0", @@ -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.10.6", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.6.tgz", + "integrity": "sha512-Vac8H+NlRNNlAmDfGUP7b5h/KA+AtWIzuXy0E6OyP8f1tCLYAtPvKRRDJjAPqhpCb0t6U2j7/xqAuLEebW2kiw==", "dependencies": { "undici-types": "~5.26.4" } diff --git a/package.json b/package.json index e9b4980..9c871f6 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "devDependencies": { "@types/config": "^3.3.3", "@types/jest": "^29.5.11", - "@types/node": "^20.10.5", + "@types/node": "^20.10.6", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.15.0", "@typescript-eslint/parser": "^6.16.0", From 425aac5ce6f3f89c9332370f43ede957d61c1398 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 16:20:31 +0000 Subject: [PATCH 05/41] chore(deps): bump i18next from 23.7.11 to 23.7.13 Bumps [i18next](https://github.com/i18next/i18next) from 23.7.11 to 23.7.13. - [Release notes](https://github.com/i18next/i18next/releases) - [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md) - [Commits](https://github.com/i18next/i18next/compare/v23.7.11...v23.7.13) --- updated-dependencies: - dependency-name: i18next dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0fda1eb..22c5bd6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "discord-voip": "^0.1.3", "discord.js": "^14.14.1", "dotenv": "^16.3.1", - "i18next": "^23.7.11", + "i18next": "^23.7.13", "i18next-fs-backend": "^2.3.1", "mediaplex": "^0.0.9", "node-os-utils": "^1.3.7", @@ -4246,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.7.13", + "resolved": "https://registry.npmjs.org/i18next/-/i18next-23.7.13.tgz", + "integrity": "sha512-DbCPlw6VmURSZa43iOnycxq9o15e+WuBWDBZ3aj+gQZcDz4sgnuKwrcwmP1n8gSSCwCN7CRFGTpnwTd93A16Mg==", "funding": [ { "type": "individual", diff --git a/package.json b/package.json index 753ad4d..7040fc8 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "discord-voip": "^0.1.3", "discord.js": "^14.14.1", "dotenv": "^16.3.1", - "i18next": "^23.7.11", + "i18next": "^23.7.13", "i18next-fs-backend": "^2.3.1", "mediaplex": "^0.0.9", "node-os-utils": "^1.3.7", From 637210b4e0898ff4af9b1161fd6f6a7f3de26923 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 16:22:25 +0000 Subject: [PATCH 06/41] chore(deps): bump pino-pretty from 10.3.0 to 10.3.1 Bumps [pino-pretty](https://github.com/pinojs/pino-pretty) from 10.3.0 to 10.3.1. - [Release notes](https://github.com/pinojs/pino-pretty/releases) - [Commits](https://github.com/pinojs/pino-pretty/compare/v10.3.0...v10.3.1) --- updated-dependencies: - dependency-name: pino-pretty dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 9 +++++---- package.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 22c5bd6..3b12faf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,6 +24,7 @@ "mediaplex": "^0.0.9", "node-os-utils": "^1.3.7", "pino": "^8.17.1", + "pino-pretty": "^10.3.1", "youtube-ext": "^1.1.16" }, "devDependencies": { @@ -46,7 +47,7 @@ }, "optionalDependencies": { "pino-loki": "^2.1.3", - "pino-pretty": "^10.3.0" + "pino-pretty": "^10.3.1" } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -6169,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", diff --git a/package.json b/package.json index 7040fc8..54e130c 100644 --- a/package.json +++ b/package.json @@ -86,6 +86,6 @@ }, "optionalDependencies": { "pino-loki": "^2.1.3", - "pino-pretty": "^10.3.0" + "pino-pretty": "^10.3.1" } } From 56017678062a343f94f18ebb1ed770c6d9efe49a Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Fri, 5 Jan 2024 23:47:41 +0100 Subject: [PATCH 07/41] fix: transform search query in /play autocomplete --- src/interactions/autocomplete/play.ts | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/interactions/autocomplete/play.ts b/src/interactions/autocomplete/play.ts index e6419d0..2984af2 100644 --- a/src/interactions/autocomplete/play.ts +++ b/src/interactions/autocomplete/play.ts @@ -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(); @@ -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[]); } - 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[] = 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); } From b3b73ad49f920dfd81598ea15c20b6ab87fa5ea4 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Fri, 5 Jan 2024 23:48:03 +0100 Subject: [PATCH 08/41] fix: check for duplicate /track/id in spotify url and trim --- src/utils/validation/searchQueryValidator.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/utils/validation/searchQueryValidator.ts b/src/utils/validation/searchQueryValidator.ts index fe0fcf7..2f069b7 100644 --- a/src/utils/validation/searchQueryValidator.ts +++ b/src/utils/validation/searchQueryValidator.ts @@ -27,6 +27,14 @@ 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) { + const trackId: string = trackIdMatches[1]; + query = `https://open.spotify.com/track/${trackId}`; + } } catch (error) { logger.error(error, 'Error while validating or transforming Spotify url.'); } From 5d9941dabec865ff5d8aee56a1d70a54fc03181c Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Fri, 5 Jan 2024 23:48:11 +0100 Subject: [PATCH 09/41] deps: generate package-lock.json --- package-lock.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 42c40d0..60e90db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,6 @@ "mediaplex": "^0.0.9", "node-os-utils": "^1.3.7", "pino": "^8.17.1", - "pino-pretty": "^10.3.1", "youtube-ext": "^1.1.16" }, "devDependencies": { From b689b024ac75c0120905ebd96d79561dc0f46dbe Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Fri, 5 Jan 2024 23:49:15 +0100 Subject: [PATCH 10/41] Add logging to duplicate /track/id in spotify url --- src/utils/validation/searchQueryValidator.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/validation/searchQueryValidator.ts b/src/utils/validation/searchQueryValidator.ts index 2f069b7..eb5ccaf 100644 --- a/src/utils/validation/searchQueryValidator.ts +++ b/src/utils/validation/searchQueryValidator.ts @@ -32,6 +32,7 @@ export const transformQuery = ({ query, executionId }: TransformQueryParams) => 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}`; } From fc16137427cbf5eec46646eae6b6e2a7f15c432f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jan 2024 16:33:38 +0000 Subject: [PATCH 11/41] chore(deps-dev): bump i18next-resources-for-ts from 1.4.0 to 1.5.0 Bumps [i18next-resources-for-ts](https://github.com/i18next/i18next-resources-for-ts) from 1.4.0 to 1.5.0. - [Commits](https://github.com/i18next/i18next-resources-for-ts/compare/v1.4.0...v1.5.0) --- updated-dependencies: - dependency-name: i18next-resources-for-ts dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 26 ++++++++++++++++++-------- package.json | 2 +- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 60e90db..3c08ab4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,7 +37,7 @@ "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.2", - "i18next-resources-for-ts": "^1.4.0", + "i18next-resources-for-ts": "^1.5.0", "jest": "^29.7.0", "nodemon": "^3.0.2", "prettier": "^3.1.1", @@ -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" }, @@ -4273,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" @@ -7564,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", diff --git a/package.json b/package.json index e6d88a2..ece4054 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.2", - "i18next-resources-for-ts": "^1.4.0", + "i18next-resources-for-ts": "^1.5.0", "jest": "^29.7.0", "nodemon": "^3.0.2", "prettier": "^3.1.1", From 748742a2fceb22950f4fb41f5137eb8d060653e3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:27:22 +0000 Subject: [PATCH 12/41] chore(deps): bump i18next from 23.7.13 to 23.7.16 Bumps [i18next](https://github.com/i18next/i18next) from 23.7.13 to 23.7.16. - [Release notes](https://github.com/i18next/i18next/releases) - [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md) - [Commits](https://github.com/i18next/i18next/compare/v23.7.13...v23.7.16) --- updated-dependencies: - dependency-name: i18next dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3c08ab4..0b7225b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "discord-voip": "^0.1.3", "discord.js": "^14.14.1", "dotenv": "^16.3.1", - "i18next": "^23.7.13", + "i18next": "^23.7.16", "i18next-fs-backend": "^2.3.1", "mediaplex": "^0.0.9", "node-os-utils": "^1.3.7", @@ -4246,9 +4246,9 @@ } }, "node_modules/i18next": { - "version": "23.7.13", - "resolved": "https://registry.npmjs.org/i18next/-/i18next-23.7.13.tgz", - "integrity": "sha512-DbCPlw6VmURSZa43iOnycxq9o15e+WuBWDBZ3aj+gQZcDz4sgnuKwrcwmP1n8gSSCwCN7CRFGTpnwTd93A16Mg==", + "version": "23.7.16", + "resolved": "https://registry.npmjs.org/i18next/-/i18next-23.7.16.tgz", + "integrity": "sha512-SrqFkMn9W6Wb43ZJ9qrO6U2U4S80RsFMA7VYFSqp7oc7RllQOYDCdRfsse6A7Cq/V8MnpxKvJCYgM8++27n4Fw==", "funding": [ { "type": "individual", diff --git a/package.json b/package.json index ece4054..564982d 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "discord-voip": "^0.1.3", "discord.js": "^14.14.1", "dotenv": "^16.3.1", - "i18next": "^23.7.13", + "i18next": "^23.7.16", "i18next-fs-backend": "^2.3.1", "mediaplex": "^0.0.9", "node-os-utils": "^1.3.7", From 8f37bfe557b5a561462eee1aca5135483bd5906f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:29:00 +0000 Subject: [PATCH 13/41] chore(deps-dev): bump @types/node from 20.10.6 to 20.10.7 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.10.6 to 20.10.7. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0b7225b..5ed6e53 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "devDependencies": { "@types/config": "^3.3.3", "@types/jest": "^29.5.11", - "@types/node": "^20.10.6", + "@types/node": "^20.10.7", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.16.0", "@typescript-eslint/parser": "^6.16.0", @@ -1761,9 +1761,9 @@ } }, "node_modules/@types/node": { - "version": "20.10.6", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.6.tgz", - "integrity": "sha512-Vac8H+NlRNNlAmDfGUP7b5h/KA+AtWIzuXy0E6OyP8f1tCLYAtPvKRRDJjAPqhpCb0t6U2j7/xqAuLEebW2kiw==", + "version": "20.10.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.7.tgz", + "integrity": "sha512-fRbIKb8C/Y2lXxB5eVMj4IU7xpdox0Lh8bUPEdtLysaylsml1hOOx1+STloRs/B9nf7C6kPRmmg/V7aQW7usNg==", "dependencies": { "undici-types": "~5.26.4" } diff --git a/package.json b/package.json index 564982d..bbf857d 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "devDependencies": { "@types/config": "^3.3.3", "@types/jest": "^29.5.11", - "@types/node": "^20.10.6", + "@types/node": "^20.10.7", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.16.0", "@typescript-eslint/parser": "^6.16.0", From 90b13dbdcf1b45d938b090ef9d9fd2491af8d4d8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:30:54 +0000 Subject: [PATCH 14/41] chore(deps-dev): bump @typescript-eslint/eslint-plugin Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.16.0 to 6.18.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.18.1/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 266 ++++++++++++++++++++++++++++++++++++++++++---- package.json | 2 +- 2 files changed, 248 insertions(+), 20 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5ed6e53..7bef08a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ "@types/jest": "^29.5.11", "@types/node": "^20.10.7", "@types/node-os-utils": "^1.3.4", - "@typescript-eslint/eslint-plugin": "^6.16.0", + "@typescript-eslint/eslint-plugin": "^6.18.1", "@typescript-eslint/parser": "^6.16.0", "concurrently": "^8.2.2", "eslint": "^8.56.0", @@ -1819,16 +1819,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.16.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.16.0.tgz", - "integrity": "sha512-O5f7Kv5o4dLWQtPX4ywPPa+v9G+1q1x8mz0Kr0pXUtKsevo+gIJHLkGc8RxaZWtP8RrhwhSNIWThnW42K9/0rQ==", + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.18.1.tgz", + "integrity": "sha512-nISDRYnnIpk7VCFrGcu1rnZfM1Dh9LRHnfgdkjcbi/l7g16VYRri3TjXi9Ir4lOZSw5N/gnV/3H7jIPQ8Q4daA==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.16.0", - "@typescript-eslint/type-utils": "6.16.0", - "@typescript-eslint/utils": "6.16.0", - "@typescript-eslint/visitor-keys": "6.16.0", + "@typescript-eslint/scope-manager": "6.18.1", + "@typescript-eslint/type-utils": "6.18.1", + "@typescript-eslint/utils": "6.18.1", + "@typescript-eslint/visitor-keys": "6.18.1", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -1853,6 +1853,53 @@ } } }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager": { + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.18.1.tgz", + "integrity": "sha512-BgdBwXPFmZzaZUuw6wKiHKIovms97a7eTImjkXCZE04TGHysG+0hDQPmygyvgtkoB/aOQwSM/nWv3LzrOIQOBw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.18.1", + "@typescript-eslint/visitor-keys": "6.18.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types": { + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.18.1.tgz", + "integrity": "sha512-4TuMAe+tc5oA7wwfqMtB0Y5OrREPF1GeJBAjqwgZh1lEMH5PJQgWgHGfYufVB51LtjD+peZylmeyxUXPfENLCw==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys": { + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.18.1.tgz", + "integrity": "sha512-/kvt0C5lRqGoCfsbmm7/CwMqoSkY3zzHLIjdhHZQW3VFrnz7ATecOHR7nb7V+xn4286MBxfnQfQhAmCI0u+bJA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.18.1", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, "node_modules/@typescript-eslint/parser": { "version": "6.16.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.16.0.tgz", @@ -1899,13 +1946,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.16.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.16.0.tgz", - "integrity": "sha512-ThmrEOcARmOnoyQfYkHw/DX2SEYBalVECmoldVuH6qagKROp/jMnfXpAU/pAIWub9c4YTxga+XwgAkoA0pxfmg==", + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.18.1.tgz", + "integrity": "sha512-wyOSKhuzHeU/5pcRDP2G2Ndci+4g653V43gXTpt4nbyoIOAASkGDA9JIAgbQCdCkcr1MvpSYWzxTz0olCn8+/Q==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.16.0", - "@typescript-eslint/utils": "6.16.0", + "@typescript-eslint/typescript-estree": "6.18.1", + "@typescript-eslint/utils": "6.18.1", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -1925,6 +1972,88 @@ } } }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types": { + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.18.1.tgz", + "integrity": "sha512-4TuMAe+tc5oA7wwfqMtB0Y5OrREPF1GeJBAjqwgZh1lEMH5PJQgWgHGfYufVB51LtjD+peZylmeyxUXPfENLCw==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree": { + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.18.1.tgz", + "integrity": "sha512-fv9B94UAhywPRhUeeV/v+3SBDvcPiLxRZJw/xZeeGgRLQZ6rLMG+8krrJUyIf6s1ecWTzlsbp0rlw7n9sjufHA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.18.1", + "@typescript-eslint/visitor-keys": "6.18.1", + "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" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys": { + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.18.1.tgz", + "integrity": "sha512-/kvt0C5lRqGoCfsbmm7/CwMqoSkY3zzHLIjdhHZQW3VFrnz7ATecOHR7nb7V+xn4286MBxfnQfQhAmCI0u+bJA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.18.1", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils/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/type-utils/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/types": { "version": "6.16.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.16.0.tgz", @@ -1991,17 +2120,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.16.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.16.0.tgz", - "integrity": "sha512-T83QPKrBm6n//q9mv7oiSvy/Xq/7Hyw9SzSEhMHJwznEmQayfBM87+oAlkNAMEO7/MjIwKyOHgBJbxB0s7gx2A==", + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.18.1.tgz", + "integrity": "sha512-zZmTuVZvD1wpoceHvoQpOiewmWu3uP9FuTWo8vqpy2ffsmfCE8mklRPi+vmnIYAIk9t/4kOThri2QCDgor+OpQ==", "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.16.0", - "@typescript-eslint/types": "6.16.0", - "@typescript-eslint/typescript-estree": "6.16.0", + "@typescript-eslint/scope-manager": "6.18.1", + "@typescript-eslint/types": "6.18.1", + "@typescript-eslint/typescript-estree": "6.18.1", "semver": "^7.5.4" }, "engines": { @@ -2015,6 +2144,105 @@ "eslint": "^7.0.0 || ^8.0.0" } }, + "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/scope-manager": { + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.18.1.tgz", + "integrity": "sha512-BgdBwXPFmZzaZUuw6wKiHKIovms97a7eTImjkXCZE04TGHysG+0hDQPmygyvgtkoB/aOQwSM/nWv3LzrOIQOBw==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.18.1", + "@typescript-eslint/visitor-keys": "6.18.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/types": { + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.18.1.tgz", + "integrity": "sha512-4TuMAe+tc5oA7wwfqMtB0Y5OrREPF1GeJBAjqwgZh1lEMH5PJQgWgHGfYufVB51LtjD+peZylmeyxUXPfENLCw==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree": { + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.18.1.tgz", + "integrity": "sha512-fv9B94UAhywPRhUeeV/v+3SBDvcPiLxRZJw/xZeeGgRLQZ6rLMG+8krrJUyIf6s1ecWTzlsbp0rlw7n9sjufHA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.18.1", + "@typescript-eslint/visitor-keys": "6.18.1", + "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" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/visitor-keys": { + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.18.1.tgz", + "integrity": "sha512-/kvt0C5lRqGoCfsbmm7/CwMqoSkY3zzHLIjdhHZQW3VFrnz7ATecOHR7nb7V+xn4286MBxfnQfQhAmCI0u+bJA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.18.1", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/utils/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/utils/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/visitor-keys": { "version": "6.16.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.16.0.tgz", diff --git a/package.json b/package.json index bbf857d..fbd7131 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "@types/jest": "^29.5.11", "@types/node": "^20.10.7", "@types/node-os-utils": "^1.3.4", - "@typescript-eslint/eslint-plugin": "^6.16.0", + "@typescript-eslint/eslint-plugin": "^6.18.1", "@typescript-eslint/parser": "^6.16.0", "concurrently": "^8.2.2", "eslint": "^8.56.0", From 3fd12e3ff6b95a734e800ba5fa7f0c477f29cf6a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:32:33 +0000 Subject: [PATCH 15/41] chore(deps-dev): bump @typescript-eslint/parser from 6.16.0 to 6.18.1 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.16.0 to 6.18.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.18.1/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 260 +++------------------------------------------- package.json | 2 +- 2 files changed, 17 insertions(+), 245 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7bef08a..5f97f97 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "@types/node": "^20.10.7", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.18.1", - "@typescript-eslint/parser": "^6.16.0", + "@typescript-eslint/parser": "^6.18.1", "concurrently": "^8.2.2", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", @@ -1853,63 +1853,16 @@ } } }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/scope-manager": { - "version": "6.18.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.18.1.tgz", - "integrity": "sha512-BgdBwXPFmZzaZUuw6wKiHKIovms97a7eTImjkXCZE04TGHysG+0hDQPmygyvgtkoB/aOQwSM/nWv3LzrOIQOBw==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.18.1", - "@typescript-eslint/visitor-keys": "6.18.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/types": { - "version": "6.18.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.18.1.tgz", - "integrity": "sha512-4TuMAe+tc5oA7wwfqMtB0Y5OrREPF1GeJBAjqwgZh1lEMH5PJQgWgHGfYufVB51LtjD+peZylmeyxUXPfENLCw==", - "dev": true, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/visitor-keys": { - "version": "6.18.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.18.1.tgz", - "integrity": "sha512-/kvt0C5lRqGoCfsbmm7/CwMqoSkY3zzHLIjdhHZQW3VFrnz7ATecOHR7nb7V+xn4286MBxfnQfQhAmCI0u+bJA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.18.1", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, "node_modules/@typescript-eslint/parser": { - "version": "6.16.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.16.0.tgz", - "integrity": "sha512-H2GM3eUo12HpKZU9njig3DF5zJ58ja6ahj1GoHEHOgQvYxzoFJJEvC1MQ7T2l9Ha+69ZSOn7RTxOdpC/y3ikMw==", + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.18.1.tgz", + "integrity": "sha512-zct/MdJnVaRRNy9e84XnVtRv9Vf91/qqe+hZJtKanjojud4wAVy/7lXxJmMyX6X6J+xc6c//YEWvpeif8cAhWA==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.16.0", - "@typescript-eslint/types": "6.16.0", - "@typescript-eslint/typescript-estree": "6.16.0", - "@typescript-eslint/visitor-keys": "6.16.0", + "@typescript-eslint/scope-manager": "6.18.1", + "@typescript-eslint/types": "6.18.1", + "@typescript-eslint/typescript-estree": "6.18.1", + "@typescript-eslint/visitor-keys": "6.18.1", "debug": "^4.3.4" }, "engines": { @@ -1929,13 +1882,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.16.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.16.0.tgz", - "integrity": "sha512-0N7Y9DSPdaBQ3sqSCwlrm9zJwkpOuc6HYm7LpzLAPqBL7dmzAUimr4M29dMkOP/tEwvOCC/Cxo//yOfJD3HUiw==", + "version": "6.18.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.18.1.tgz", + "integrity": "sha512-BgdBwXPFmZzaZUuw6wKiHKIovms97a7eTImjkXCZE04TGHysG+0hDQPmygyvgtkoB/aOQwSM/nWv3LzrOIQOBw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.16.0", - "@typescript-eslint/visitor-keys": "6.16.0" + "@typescript-eslint/types": "6.18.1", + "@typescript-eslint/visitor-keys": "6.18.1" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1972,7 +1925,7 @@ } } }, - "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/types": { + "node_modules/@typescript-eslint/types": { "version": "6.18.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.18.1.tgz", "integrity": "sha512-4TuMAe+tc5oA7wwfqMtB0Y5OrREPF1GeJBAjqwgZh1lEMH5PJQgWgHGfYufVB51LtjD+peZylmeyxUXPfENLCw==", @@ -1985,7 +1938,7 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/typescript-estree": { + "node_modules/@typescript-eslint/typescript-estree": { "version": "6.18.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.18.1.tgz", "integrity": "sha512-fv9B94UAhywPRhUeeV/v+3SBDvcPiLxRZJw/xZeeGgRLQZ6rLMG+8krrJUyIf6s1ecWTzlsbp0rlw7n9sjufHA==", @@ -2013,88 +1966,6 @@ } } }, - "node_modules/@typescript-eslint/type-utils/node_modules/@typescript-eslint/visitor-keys": { - "version": "6.18.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.18.1.tgz", - "integrity": "sha512-/kvt0C5lRqGoCfsbmm7/CwMqoSkY3zzHLIjdhHZQW3VFrnz7ATecOHR7nb7V+xn4286MBxfnQfQhAmCI0u+bJA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.18.1", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils/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/type-utils/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/types": { - "version": "6.16.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.16.0.tgz", - "integrity": "sha512-hvDFpLEvTJoHutVl87+MG/c5C8I6LOgEx05zExTSJDEVU7hhR3jhV8M5zuggbdFCw98+HhZWPHZeKS97kS3JoQ==", - "dev": true, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.16.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.16.0.tgz", - "integrity": "sha512-VTWZuixh/vr7nih6CfrdpmFNLEnoVBF1skfjdyGnNwXOH1SLeHItGdZDHhhAIzd3ACazyY2Fg76zuzOVTaknGA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.16.0", - "@typescript-eslint/visitor-keys": "6.16.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" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "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", @@ -2144,65 +2015,7 @@ "eslint": "^7.0.0 || ^8.0.0" } }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/scope-manager": { - "version": "6.18.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.18.1.tgz", - "integrity": "sha512-BgdBwXPFmZzaZUuw6wKiHKIovms97a7eTImjkXCZE04TGHysG+0hDQPmygyvgtkoB/aOQwSM/nWv3LzrOIQOBw==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.18.1", - "@typescript-eslint/visitor-keys": "6.18.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/types": { - "version": "6.18.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.18.1.tgz", - "integrity": "sha512-4TuMAe+tc5oA7wwfqMtB0Y5OrREPF1GeJBAjqwgZh1lEMH5PJQgWgHGfYufVB51LtjD+peZylmeyxUXPfENLCw==", - "dev": true, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree": { - "version": "6.18.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.18.1.tgz", - "integrity": "sha512-fv9B94UAhywPRhUeeV/v+3SBDvcPiLxRZJw/xZeeGgRLQZ6rLMG+8krrJUyIf6s1ecWTzlsbp0rlw7n9sjufHA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.18.1", - "@typescript-eslint/visitor-keys": "6.18.1", - "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" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/visitor-keys": { + "node_modules/@typescript-eslint/visitor-keys": { "version": "6.18.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.18.1.tgz", "integrity": "sha512-/kvt0C5lRqGoCfsbmm7/CwMqoSkY3zzHLIjdhHZQW3VFrnz7ATecOHR7nb7V+xn4286MBxfnQfQhAmCI0u+bJA==", @@ -2219,47 +2032,6 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/utils/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/utils/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/visitor-keys": { - "version": "6.16.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.16.0.tgz", - "integrity": "sha512-QSFQLruk7fhs91a/Ep/LqRdbJCZ1Rq03rqBdKT5Ky17Sz8zRLUksqIe9DW0pKtg/Z35/ztbLQ6qpOCN6rOC11A==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.16.0", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, "node_modules/@ungap/structured-clone": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", diff --git a/package.json b/package.json index fbd7131..7ce3326 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "@types/node": "^20.10.7", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.18.1", - "@typescript-eslint/parser": "^6.16.0", + "@typescript-eslint/parser": "^6.18.1", "concurrently": "^8.2.2", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", From 99c3cd006f075957a22eaa6f408706bab4592d66 Mon Sep 17 00:00:00 2001 From: Aaron Sandoval <89826250+aarons124@users.noreply.github.com> Date: Mon, 15 Jan 2024 00:57:46 -0700 Subject: [PATCH 16/41] feat(music): implement Song Announce Feature - Extend metadata property in ExtendedGuildQueuePlayerNode type to include lastMessage property. - Enable music bot to announce the start of a new song by sending a message to the channel. - Add new event, playerFinish, to fetch and delete the last song-announce message if possible. - Modify play command to accommodate these changes. --- .gitignore | 1 + src/events/player/playerFinish.ts | 41 ++++++++++++++++++ src/events/player/playerStart.ts | 54 +++++++++++++++++++++--- src/interactions/commands/player/play.ts | 8 ---- src/types/eventTypes.d.ts | 5 ++- 5 files changed, 94 insertions(+), 15 deletions(-) create mode 100644 src/events/player/playerFinish.ts diff --git a/.gitignore b/.gitignore index 7083867..c51f45b 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ /coverage /locales/resources.d.ts /prisma/dev.db +/pnpm-lock.yaml \ No newline at end of file diff --git a/src/events/player/playerFinish.ts b/src/events/player/playerFinish.ts new file mode 100644 index 0000000..75bafd5 --- /dev/null +++ b/src/events/player/playerFinish.ts @@ -0,0 +1,41 @@ +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, deleting previous now-playing message.` + ); + + 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.'); + } +}; \ No newline at end of file diff --git a/src/events/player/playerStart.ts b/src/events/player/playerStart.ts index 3a0384c..859e7ca 100644 --- a/src/events/player/playerStart.ts +++ b/src/events/player/playerStart.ts @@ -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,45 @@ module.exports = { }); logger.debug(`playerStart event: Started playing '${track.url}'.`); + + const { channel, client } = queue.metadata || {}; + const embedOptions: EmbedOptions = config.get('embedOptions'); + + 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.'); } -}; +}; \ No newline at end of file diff --git a/src/interactions/commands/player/play.ts b/src/interactions/commands/player/play.ts index 3dab4e0..2ed77ef 100644 --- a/src/interactions/commands/player/play.ts +++ b/src/interactions/commands/player/play.ts @@ -189,14 +189,6 @@ class PlayCommand extends BaseSlashCommandInteraction { const posistionFirstTrackInPlaylist = queue.tracks.data.length - searchResult.tracks.length + 1; 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; } const embed = new EmbedBuilder() diff --git a/src/types/eventTypes.d.ts b/src/types/eventTypes.d.ts index 4dd85e3..2ca5512 100644 --- a/src/types/eventTypes.d.ts +++ b/src/types/eventTypes.d.ts @@ -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; +} & GuildQueuePlayerNode; \ No newline at end of file From d89e1e60091b0730c2db72e5543196012a0f96fe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 16:42:28 +0000 Subject: [PATCH 17/41] chore(deps): bump discord-player from 6.6.6 to 6.6.7 Bumps [discord-player](https://github.com/Androz2091/discord-player) from 6.6.6 to 6.6.7. - [Release notes](https://github.com/Androz2091/discord-player/releases) - [Commits](https://github.com/Androz2091/discord-player/compare/discord-player@6.6.6...discord-player@6.6.7) --- updated-dependencies: - dependency-name: discord-player dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 16 ++++++++-------- package.json | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5f97f97..c725a1e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@discordjs/rest": "^2.2.0", "@prisma/client": "^5.7.1", "config": "^3.3.9", - "discord-player": "^6.6.6", + "discord-player": "^6.6.7", "discord-voip": "^0.1.3", "discord.js": "^14.14.1", "dotenv": "^16.3.1", @@ -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", @@ -3249,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", @@ -3264,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": { diff --git a/package.json b/package.json index 7ce3326..e21bf8d 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "@discordjs/rest": "^2.2.0", "@prisma/client": "^5.7.1", "config": "^3.3.9", - "discord-player": "^6.6.6", + "discord-player": "^6.6.7", "discord-voip": "^0.1.3", "discord.js": "^14.14.1", "dotenv": "^16.3.1", From 82f352d613ce34835e77edbd891d6092472d6847 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 17:05:08 +0000 Subject: [PATCH 18/41] chore(deps): bump @prisma/client from 5.7.1 to 5.8.1 Bumps [@prisma/client](https://github.com/prisma/prisma/tree/HEAD/packages/client) from 5.7.1 to 5.8.1. - [Release notes](https://github.com/prisma/prisma/releases) - [Commits](https://github.com/prisma/prisma/commits/5.8.1/packages/client) --- updated-dependencies: - dependency-name: "@prisma/client" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index c725a1e..a004a6c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,7 @@ "@discord-player/extractor": "^4.4.5", "@discord-player/opus": "^0.1.2", "@discordjs/rest": "^2.2.0", - "@prisma/client": "^5.7.1", + "@prisma/client": "^5.8.1", "config": "^3.3.9", "discord-player": "^6.6.7", "discord-voip": "^0.1.3", @@ -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" diff --git a/package.json b/package.json index e21bf8d..e9e1318 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@discord-player/extractor": "^4.4.5", "@discord-player/opus": "^0.1.2", "@discordjs/rest": "^2.2.0", - "@prisma/client": "^5.7.1", + "@prisma/client": "^5.8.1", "config": "^3.3.9", "discord-player": "^6.6.7", "discord-voip": "^0.1.3", From 18b010ac80a12cddf134f539fd3aea9a16a5c259 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 17:06:15 +0000 Subject: [PATCH 19/41] chore(deps-dev): bump prettier from 3.1.1 to 3.2.2 Bumps [prettier](https://github.com/prettier/prettier) from 3.1.1 to 3.2.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/3.1.1...3.2.2) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index a004a6c..69f7d07 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40,7 +40,7 @@ "i18next-resources-for-ts": "^1.5.0", "jest": "^29.7.0", "nodemon": "^3.0.2", - "prettier": "^3.1.1", + "prettier": "^3.2.2", "ts-jest": "^29.1.1", "typescript": "^5.3.3" }, @@ -6282,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.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.2.tgz", + "integrity": "sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==", "dev": true, "bin": { "prettier": "bin/prettier.cjs" diff --git a/package.json b/package.json index e9e1318..a47fd43 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "i18next-resources-for-ts": "^1.5.0", "jest": "^29.7.0", "nodemon": "^3.0.2", - "prettier": "^3.1.1", + "prettier": "^3.2.2", "ts-jest": "^29.1.1", "typescript": "^5.3.3" }, From c7941285c564e3ce64c71b55aa113fb341c962ee Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 17:07:26 +0000 Subject: [PATCH 20/41] chore(deps-dev): bump @types/node from 20.10.7 to 20.11.2 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.10.7 to 20.11.2. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 69f7d07..0d7eec0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "devDependencies": { "@types/config": "^3.3.3", "@types/jest": "^29.5.11", - "@types/node": "^20.10.7", + "@types/node": "^20.11.2", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.18.1", "@typescript-eslint/parser": "^6.18.1", @@ -1761,9 +1761,9 @@ } }, "node_modules/@types/node": { - "version": "20.10.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.7.tgz", - "integrity": "sha512-fRbIKb8C/Y2lXxB5eVMj4IU7xpdox0Lh8bUPEdtLysaylsml1hOOx1+STloRs/B9nf7C6kPRmmg/V7aQW7usNg==", + "version": "20.11.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.2.tgz", + "integrity": "sha512-cZShBaVa+UO1LjWWBPmWRR4+/eY/JR/UIEcDlVsw3okjWEu+rB7/mH6X3B/L+qJVHDLjk9QW/y2upp9wp1yDXA==", "dependencies": { "undici-types": "~5.26.4" } diff --git a/package.json b/package.json index a47fd43..198c2b1 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "devDependencies": { "@types/config": "^3.3.3", "@types/jest": "^29.5.11", - "@types/node": "^20.10.7", + "@types/node": "^20.11.2", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.18.1", "@typescript-eslint/parser": "^6.18.1", From d91bf7499173b082aeb183f4745c3af9d44826da Mon Sep 17 00:00:00 2001 From: Aaron Sandoval <89826250+aarons124@users.noreply.github.com> Date: Mon, 15 Jan 2024 19:58:46 -0700 Subject: [PATCH 21/41] Add behavior option to enable/disable player start messages --- config/default.js | 4 ++++ src/events/player/playerFinish.ts | 6 +++--- src/events/player/playerStart.ts | 5 +++++ src/interactions/commands/player/play.ts | 10 ++++++++++ src/types/configTypes.d.ts | 3 +++ 5 files changed, 25 insertions(+), 3 deletions(-) diff --git a/config/default.js b/config/default.js index d56d570..0506dc4 100644 --- a/config/default.js +++ b/config/default.js @@ -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`', diff --git a/src/events/player/playerFinish.ts b/src/events/player/playerFinish.ts index 75bafd5..75a6791 100644 --- a/src/events/player/playerFinish.ts +++ b/src/events/player/playerFinish.ts @@ -1,9 +1,11 @@ import { ExtendedGuildQueuePlayerNode } from '../../types/eventTypes'; +import { EmbedOptions } from '../../types/configTypes'; 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'; +import config from 'config'; // Emitted when the audio player finish playing a track. module.exports = { @@ -20,9 +22,7 @@ module.exports = { guildId: queue.metadata?.channel.guild.id }); - logger.debug( - `playerFinish event: Track [${track.url}] finished playing, deleting previous now-playing message.` - ); + logger.debug(`playerFinish event: Track [${track.url}] finished playing.`); const { lastMessage } = queue.metadata || {}; const fetchLastAnnounceMessage = diff --git a/src/events/player/playerStart.ts b/src/events/player/playerStart.ts index 859e7ca..8a1f89e 100644 --- a/src/events/player/playerStart.ts +++ b/src/events/player/playerStart.ts @@ -27,6 +27,11 @@ module.exports = { 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.` diff --git a/src/interactions/commands/player/play.ts b/src/interactions/commands/player/play.ts index 2ed77ef..6769ffb 100644 --- a/src/interactions/commands/player/play.ts +++ b/src/interactions/commands/player/play.ts @@ -189,6 +189,16 @@ class PlayCommand extends BaseSlashCommandInteraction { const posistionFirstTrackInPlaylist = queue.tracks.data.length - searchResult.tracks.length + 1; embedFooter = this.getDisplayFooterTrackPosition(posistionFirstTrackInPlaylist, translator); } + } else if (queue.currentTrack === track && queue.tracks.data.length === 0) { + if (!this.embedOptions.behavior.enablePlayerStartMessages) { + message = + translator('musicPlayerCommon.nowPlayingTitle', { + icon: this.embedOptions.icons.audioStartedPlaying + }) + + '\n' + + trackUrl; + embedFooter = undefined; + } } const embed = new EmbedBuilder() diff --git a/src/types/configTypes.d.ts b/src/types/configTypes.d.ts index 2343d21..bc012e2 100644 --- a/src/types/configTypes.d.ts +++ b/src/types/configTypes.d.ts @@ -43,6 +43,9 @@ export type EmbedOptions = { components: { showButtonLabels: boolean; }; + behavior: { + enablePlayerStartMessages: boolean; + }; icons: { logo: string; beta: string; From 105dd3570e1d2ac466864eba93e08bb905b9c056 Mon Sep 17 00:00:00 2001 From: Aaron Sandoval <89826250+aarons124@users.noreply.github.com> Date: Mon, 15 Jan 2024 20:07:48 -0700 Subject: [PATCH 22/41] style(): fixed formatting issues --- package.json | 2 +- src/events/player/playerFinish.ts | 4 +--- src/events/player/playerStart.ts | 4 ++-- src/interactions/commands/player/play.ts | 2 +- src/types/eventTypes.d.ts | 2 +- 5 files changed, 6 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 198c2b1..940838d 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/events/player/playerFinish.ts b/src/events/player/playerFinish.ts index 75a6791..8aa8769 100644 --- a/src/events/player/playerFinish.ts +++ b/src/events/player/playerFinish.ts @@ -1,11 +1,9 @@ import { ExtendedGuildQueuePlayerNode } from '../../types/eventTypes'; -import { EmbedOptions } from '../../types/configTypes'; 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'; -import config from 'config'; // Emitted when the audio player finish playing a track. module.exports = { @@ -38,4 +36,4 @@ module.exports = { logger.debug('playerFinish event: Previous now-playing message deleted.'); } -}; \ No newline at end of file +}; diff --git a/src/events/player/playerStart.ts b/src/events/player/playerStart.ts index 8a1f89e..5c55f0e 100644 --- a/src/events/player/playerStart.ts +++ b/src/events/player/playerStart.ts @@ -63,10 +63,10 @@ module.exports = { queue.metadata.lastMessage = announceMessage; } } catch (error) { - logger.error(error, `playerStart event: Error trying to send now-playing message.`); + logger.error(error, 'playerStart event: Error trying to send now-playing message.'); return; } logger.debug('playerStart event: now-playing message sent.'); } -}; \ No newline at end of file +}; diff --git a/src/interactions/commands/player/play.ts b/src/interactions/commands/player/play.ts index 6769ffb..457bdaa 100644 --- a/src/interactions/commands/player/play.ts +++ b/src/interactions/commands/player/play.ts @@ -190,7 +190,7 @@ class PlayCommand extends BaseSlashCommandInteraction { embedFooter = this.getDisplayFooterTrackPosition(posistionFirstTrackInPlaylist, translator); } } else if (queue.currentTrack === track && queue.tracks.data.length === 0) { - if (!this.embedOptions.behavior.enablePlayerStartMessages) { + if (!this.embedOptions.behavior.enablePlayerStartMessages) { message = translator('musicPlayerCommon.nowPlayingTitle', { icon: this.embedOptions.icons.audioStartedPlaying diff --git a/src/types/eventTypes.d.ts b/src/types/eventTypes.d.ts index 2ca5512..3dee0a1 100644 --- a/src/types/eventTypes.d.ts +++ b/src/types/eventTypes.d.ts @@ -14,4 +14,4 @@ export type ExtendedGuildQueuePlayerNode = { channel: BaseGuildTextChannel; lastMessage: Message; }; -} & GuildQueuePlayerNode; \ No newline at end of file +} & GuildQueuePlayerNode; From 44513e7b41947c32b1987e3f3f6449e5c61b61c3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 22:02:58 +0000 Subject: [PATCH 23/41] docs(README): update contributors --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 74f7dd9..3355077 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,13 @@ This project is made possible by the contributions from the community and the us tacheometry + + + Aaron +
+ Aaron Sandoval +
+ Parker From 626d766405909133a705d38fa0ea97c78b3d3c46 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 22:02:52 +0000 Subject: [PATCH 24/41] docs(README): update contributors --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3355077..0e76bb5 100644 --- a/README.md +++ b/README.md @@ -108,9 +108,9 @@ This project is made possible by the contributions from the community and the us - Archaeopteryx/ + Twilight/
- Archaeopteryx + Twilight
From 1bd8e125303b4bfa4c2b202a6f420b67dbd95355 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:03:53 +0000 Subject: [PATCH 25/41] chore(deps): bump pino-loki from 2.1.3 to 2.2.1 Bumps [pino-loki](https://github.com/Julien-R44/pino-loki) from 2.1.3 to 2.2.1. - [Release notes](https://github.com/Julien-R44/pino-loki/releases) - [Commits](https://github.com/Julien-R44/pino-loki/compare/v2.1.3...v2.2.1) --- updated-dependencies: - dependency-name: pino-loki dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 11 ++++++----- package.json | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0d7eec0..15148f7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,6 +24,7 @@ "mediaplex": "^0.0.9", "node-os-utils": "^1.3.7", "pino": "^8.17.1", + "pino-loki": "^2.2.1", "youtube-ext": "^1.1.16" }, "devDependencies": { @@ -45,7 +46,7 @@ "typescript": "^5.3.3" }, "optionalDependencies": { - "pino-loki": "^2.1.3", + "pino-loki": "^2.2.1", "pino-pretty": "^10.3.1" } }, @@ -6152,14 +6153,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": { diff --git a/package.json b/package.json index 940838d..5378ff2 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "typescript": "^5.3.3" }, "optionalDependencies": { - "pino-loki": "^2.1.3", + "pino-loki": "^2.2.1", "pino-pretty": "^10.3.1" } } From 5c2cbab0c495934f810c451c4ba6409624922872 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:06:30 +0000 Subject: [PATCH 26/41] chore(deps): bump config from 3.3.9 to 3.3.10 Bumps [config](https://github.com/node-config/node-config) from 3.3.9 to 3.3.10. - [Release notes](https://github.com/node-config/node-config/releases) - [Changelog](https://github.com/node-config/node-config/blob/master/History.md) - [Commits](https://github.com/node-config/node-config/compare/v3.3.9...v3.3.10) --- updated-dependencies: - dependency-name: config dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 9 ++++----- package.json | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 15148f7..53d9da0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@discord-player/opus": "^0.1.2", "@discordjs/rest": "^2.2.0", "@prisma/client": "^5.8.1", - "config": "^3.3.9", + "config": "^3.3.10", "discord-player": "^6.6.7", "discord-voip": "^0.1.3", "discord.js": "^14.14.1", @@ -24,7 +24,6 @@ "mediaplex": "^0.0.9", "node-os-utils": "^1.3.7", "pino": "^8.17.1", - "pino-loki": "^2.2.1", "youtube-ext": "^1.1.16" }, "devDependencies": { @@ -2842,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" }, diff --git a/package.json b/package.json index 5378ff2..7c05917 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "@discord-player/opus": "^0.1.2", "@discordjs/rest": "^2.2.0", "@prisma/client": "^5.8.1", - "config": "^3.3.9", + "config": "^3.3.10", "discord-player": "^6.6.7", "discord-voip": "^0.1.3", "discord.js": "^14.14.1", From 01568d3ef746b6a1fd1e3b283759193484a5a2f4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:12:04 +0000 Subject: [PATCH 27/41] chore(deps-dev): bump eslint-plugin-prettier from 5.1.2 to 5.1.3 Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 5.1.2 to 5.1.3. - [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases) - [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md) - [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.1.2...v5.1.3) --- updated-dependencies: - dependency-name: eslint-plugin-prettier dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 53d9da0..a02f10a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,7 +36,7 @@ "concurrently": "^8.2.2", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", - "eslint-plugin-prettier": "^5.1.2", + "eslint-plugin-prettier": "^5.1.3", "i18next-resources-for-ts": "^1.5.0", "jest": "^29.7.0", "nodemon": "^3.0.2", @@ -3524,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", diff --git a/package.json b/package.json index 7c05917..a1a1c87 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "concurrently": "^8.2.2", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", - "eslint-plugin-prettier": "^5.1.2", + "eslint-plugin-prettier": "^5.1.3", "i18next-resources-for-ts": "^1.5.0", "jest": "^29.7.0", "nodemon": "^3.0.2", From 737e82cc705e46f164922c63938aa98d49553b52 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:12:59 +0000 Subject: [PATCH 28/41] chore(deps-dev): bump @typescript-eslint/parser from 6.18.1 to 6.19.0 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.18.1 to 6.19.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.19.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 115 ++++++++++++++++++++++++++++++++++++++++++---- package.json | 2 +- 2 files changed, 108 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index a02f10a..1852185 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "@types/node": "^20.11.2", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.18.1", - "@typescript-eslint/parser": "^6.18.1", + "@typescript-eslint/parser": "^6.19.0", "concurrently": "^8.2.2", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", @@ -1854,15 +1854,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "6.18.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.18.1.tgz", - "integrity": "sha512-zct/MdJnVaRRNy9e84XnVtRv9Vf91/qqe+hZJtKanjojud4wAVy/7lXxJmMyX6X6J+xc6c//YEWvpeif8cAhWA==", + "version": "6.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.19.0.tgz", + "integrity": "sha512-1DyBLG5SH7PYCd00QlroiW60YJ4rWMuUGa/JBV0iZuqi4l4IK3twKPq5ZkEebmGqRjXWVgsUzfd3+nZveewgow==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.18.1", - "@typescript-eslint/types": "6.18.1", - "@typescript-eslint/typescript-estree": "6.18.1", - "@typescript-eslint/visitor-keys": "6.18.1", + "@typescript-eslint/scope-manager": "6.19.0", + "@typescript-eslint/types": "6.19.0", + "@typescript-eslint/typescript-estree": "6.19.0", + "@typescript-eslint/visitor-keys": "6.19.0", "debug": "^4.3.4" }, "engines": { @@ -1881,6 +1881,105 @@ } } }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": { + "version": "6.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.19.0.tgz", + "integrity": "sha512-dO1XMhV2ehBI6QN8Ufi7I10wmUovmLU0Oru3n5LVlM2JuzB4M+dVphCPLkVpKvGij2j/pHBWuJ9piuXx+BhzxQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.19.0", + "@typescript-eslint/visitor-keys": "6.19.0" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": { + "version": "6.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.19.0.tgz", + "integrity": "sha512-lFviGV/vYhOy3m8BJ/nAKoAyNhInTdXpftonhWle66XHAtT1ouBlkjL496b5H5hb8dWXHwtypTqgtb/DEa+j5A==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { + "version": "6.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.19.0.tgz", + "integrity": "sha512-o/zefXIbbLBZ8YJ51NlkSAt2BamrK6XOmuxSR3hynMIzzyMY33KuJ9vuMdFSXW+H0tVvdF9qBPTHA91HDb4BIQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.19.0", + "@typescript-eslint/visitor-keys": "6.19.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" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { + "version": "6.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.19.0.tgz", + "integrity": "sha512-hZaUCORLgubBvtGpp1JEFEazcuEdfxta9j4iUwdSAr7mEsYYAp3EAUyCZk3VEEqGj6W+AV4uWyrDGtrlawAsgQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.19.0", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/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/parser/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/scope-manager": { "version": "6.18.1", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.18.1.tgz", diff --git a/package.json b/package.json index a1a1c87..0782605 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "@types/node": "^20.11.2", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.18.1", - "@typescript-eslint/parser": "^6.18.1", + "@typescript-eslint/parser": "^6.19.0", "concurrently": "^8.2.2", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", From e59cd1fd67e74eea39b91076fc55e13ec7769c69 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:14:16 +0000 Subject: [PATCH 29/41] chore(deps-dev): bump @typescript-eslint/eslint-plugin Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 6.18.1 to 6.19.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.19.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 163 +++++++++------------------------------------- package.json | 2 +- 2 files changed, 33 insertions(+), 132 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1852185..2cc7551 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ "@types/jest": "^29.5.11", "@types/node": "^20.11.2", "@types/node-os-utils": "^1.3.4", - "@typescript-eslint/eslint-plugin": "^6.18.1", + "@typescript-eslint/eslint-plugin": "^6.19.0", "@typescript-eslint/parser": "^6.19.0", "concurrently": "^8.2.2", "eslint": "^8.56.0", @@ -1819,16 +1819,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.18.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.18.1.tgz", - "integrity": "sha512-nISDRYnnIpk7VCFrGcu1rnZfM1Dh9LRHnfgdkjcbi/l7g16VYRri3TjXi9Ir4lOZSw5N/gnV/3H7jIPQ8Q4daA==", + "version": "6.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.19.0.tgz", + "integrity": "sha512-DUCUkQNklCQYnrBSSikjVChdc84/vMPDQSgJTHBZ64G9bA9w0Crc0rd2diujKbTdp6w2J47qkeHQLoi0rpLCdg==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.18.1", - "@typescript-eslint/type-utils": "6.18.1", - "@typescript-eslint/utils": "6.18.1", - "@typescript-eslint/visitor-keys": "6.18.1", + "@typescript-eslint/scope-manager": "6.19.0", + "@typescript-eslint/type-utils": "6.19.0", + "@typescript-eslint/utils": "6.19.0", + "@typescript-eslint/visitor-keys": "6.19.0", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -1881,7 +1881,7 @@ } } }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": { + "node_modules/@typescript-eslint/scope-manager": { "version": "6.19.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.19.0.tgz", "integrity": "sha512-dO1XMhV2ehBI6QN8Ufi7I10wmUovmLU0Oru3n5LVlM2JuzB4M+dVphCPLkVpKvGij2j/pHBWuJ9piuXx+BhzxQ==", @@ -1898,113 +1898,14 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.19.0.tgz", - "integrity": "sha512-lFviGV/vYhOy3m8BJ/nAKoAyNhInTdXpftonhWle66XHAtT1ouBlkjL496b5H5hb8dWXHwtypTqgtb/DEa+j5A==", - "dev": true, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.19.0.tgz", - "integrity": "sha512-o/zefXIbbLBZ8YJ51NlkSAt2BamrK6XOmuxSR3hynMIzzyMY33KuJ9vuMdFSXW+H0tVvdF9qBPTHA91HDb4BIQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.19.0", - "@typescript-eslint/visitor-keys": "6.19.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" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.19.0.tgz", - "integrity": "sha512-hZaUCORLgubBvtGpp1JEFEazcuEdfxta9j4iUwdSAr7mEsYYAp3EAUyCZk3VEEqGj6W+AV4uWyrDGtrlawAsgQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.19.0", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/parser/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/parser/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/scope-manager": { - "version": "6.18.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.18.1.tgz", - "integrity": "sha512-BgdBwXPFmZzaZUuw6wKiHKIovms97a7eTImjkXCZE04TGHysG+0hDQPmygyvgtkoB/aOQwSM/nWv3LzrOIQOBw==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.18.1", - "@typescript-eslint/visitor-keys": "6.18.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.18.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.18.1.tgz", - "integrity": "sha512-wyOSKhuzHeU/5pcRDP2G2Ndci+4g653V43gXTpt4nbyoIOAASkGDA9JIAgbQCdCkcr1MvpSYWzxTz0olCn8+/Q==", + "version": "6.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.19.0.tgz", + "integrity": "sha512-mcvS6WSWbjiSxKCwBcXtOM5pRkPQ6kcDds/juxcy/727IQr3xMEcwr/YLHW2A2+Fp5ql6khjbKBzOyjuPqGi/w==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.18.1", - "@typescript-eslint/utils": "6.18.1", + "@typescript-eslint/typescript-estree": "6.19.0", + "@typescript-eslint/utils": "6.19.0", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -2025,9 +1926,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.18.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.18.1.tgz", - "integrity": "sha512-4TuMAe+tc5oA7wwfqMtB0Y5OrREPF1GeJBAjqwgZh1lEMH5PJQgWgHGfYufVB51LtjD+peZylmeyxUXPfENLCw==", + "version": "6.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.19.0.tgz", + "integrity": "sha512-lFviGV/vYhOy3m8BJ/nAKoAyNhInTdXpftonhWle66XHAtT1ouBlkjL496b5H5hb8dWXHwtypTqgtb/DEa+j5A==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -2038,13 +1939,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.18.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.18.1.tgz", - "integrity": "sha512-fv9B94UAhywPRhUeeV/v+3SBDvcPiLxRZJw/xZeeGgRLQZ6rLMG+8krrJUyIf6s1ecWTzlsbp0rlw7n9sjufHA==", + "version": "6.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.19.0.tgz", + "integrity": "sha512-o/zefXIbbLBZ8YJ51NlkSAt2BamrK6XOmuxSR3hynMIzzyMY33KuJ9vuMdFSXW+H0tVvdF9qBPTHA91HDb4BIQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.18.1", - "@typescript-eslint/visitor-keys": "6.18.1", + "@typescript-eslint/types": "6.19.0", + "@typescript-eslint/visitor-keys": "6.19.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -2090,17 +1991,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.18.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.18.1.tgz", - "integrity": "sha512-zZmTuVZvD1wpoceHvoQpOiewmWu3uP9FuTWo8vqpy2ffsmfCE8mklRPi+vmnIYAIk9t/4kOThri2QCDgor+OpQ==", + "version": "6.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.19.0.tgz", + "integrity": "sha512-QR41YXySiuN++/dC9UArYOg4X86OAYP83OWTewpVx5ct1IZhjjgTLocj7QNxGhWoTqknsgpl7L+hGygCO+sdYw==", "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.18.1", - "@typescript-eslint/types": "6.18.1", - "@typescript-eslint/typescript-estree": "6.18.1", + "@typescript-eslint/scope-manager": "6.19.0", + "@typescript-eslint/types": "6.19.0", + "@typescript-eslint/typescript-estree": "6.19.0", "semver": "^7.5.4" }, "engines": { @@ -2115,12 +2016,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.18.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.18.1.tgz", - "integrity": "sha512-/kvt0C5lRqGoCfsbmm7/CwMqoSkY3zzHLIjdhHZQW3VFrnz7ATecOHR7nb7V+xn4286MBxfnQfQhAmCI0u+bJA==", + "version": "6.19.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.19.0.tgz", + "integrity": "sha512-hZaUCORLgubBvtGpp1JEFEazcuEdfxta9j4iUwdSAr7mEsYYAp3EAUyCZk3VEEqGj6W+AV4uWyrDGtrlawAsgQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.18.1", + "@typescript-eslint/types": "6.19.0", "eslint-visitor-keys": "^3.4.1" }, "engines": { diff --git a/package.json b/package.json index 0782605..3d0f488 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "@types/jest": "^29.5.11", "@types/node": "^20.11.2", "@types/node-os-utils": "^1.3.4", - "@typescript-eslint/eslint-plugin": "^6.18.1", + "@typescript-eslint/eslint-plugin": "^6.19.0", "@typescript-eslint/parser": "^6.19.0", "concurrently": "^8.2.2", "eslint": "^8.56.0", From ef09de8284bb670d92a973c3999a84fc9a289179 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 16:15:00 +0000 Subject: [PATCH 30/41] chore(deps-dev): bump ts-jest from 29.1.1 to 29.1.2 Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.1.1 to 29.1.2. - [Release notes](https://github.com/kulshekhar/ts-jest/releases) - [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.1.1...v29.1.2) --- updated-dependencies: - dependency-name: ts-jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2cc7551..2799782 100644 --- a/package-lock.json +++ b/package-lock.json @@ -41,7 +41,7 @@ "jest": "^29.7.0", "nodemon": "^3.0.2", "prettier": "^3.2.2", - "ts-jest": "^29.1.1", + "ts-jest": "^29.1.2", "typescript": "^5.3.3" }, "optionalDependencies": { @@ -7246,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", @@ -7264,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", diff --git a/package.json b/package.json index 3d0f488..c40ed1d 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "jest": "^29.7.0", "nodemon": "^3.0.2", "prettier": "^3.2.2", - "ts-jest": "^29.1.1", + "ts-jest": "^29.1.2", "typescript": "^5.3.3" }, "optionalDependencies": { From af559c8654569a781e31c24d2463242a0c428d05 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 16:11:44 +0000 Subject: [PATCH 31/41] chore(deps-dev): bump @typescript-eslint/parser from 6.19.0 to 6.19.1 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.19.0 to 6.19.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.19.1/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 115 ++++++++++++++++++++++++++++++++++++++++++---- package.json | 2 +- 2 files changed, 108 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2799782..b158662 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "@types/node": "^20.11.2", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.19.0", - "@typescript-eslint/parser": "^6.19.0", + "@typescript-eslint/parser": "^6.19.1", "concurrently": "^8.2.2", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", @@ -1854,15 +1854,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.19.0.tgz", - "integrity": "sha512-1DyBLG5SH7PYCd00QlroiW60YJ4rWMuUGa/JBV0iZuqi4l4IK3twKPq5ZkEebmGqRjXWVgsUzfd3+nZveewgow==", + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.19.1.tgz", + "integrity": "sha512-WEfX22ziAh6pRE9jnbkkLGp/4RhTpffr2ZK5bJ18M8mIfA8A+k97U9ZyaXCEJRlmMHh7R9MJZWXp/r73DzINVQ==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.19.0", - "@typescript-eslint/types": "6.19.0", - "@typescript-eslint/typescript-estree": "6.19.0", - "@typescript-eslint/visitor-keys": "6.19.0", + "@typescript-eslint/scope-manager": "6.19.1", + "@typescript-eslint/types": "6.19.1", + "@typescript-eslint/typescript-estree": "6.19.1", + "@typescript-eslint/visitor-keys": "6.19.1", "debug": "^4.3.4" }, "engines": { @@ -1881,6 +1881,105 @@ } } }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.19.1.tgz", + "integrity": "sha512-4CdXYjKf6/6aKNMSly/BP4iCSOpvMmqtDzRtqFyyAae3z5kkqEjKndR5vDHL8rSuMIIWP8u4Mw4VxLyxZW6D5w==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.19.1", + "@typescript-eslint/visitor-keys": "6.19.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.19.1.tgz", + "integrity": "sha512-6+bk6FEtBhvfYvpHsDgAL3uo4BfvnTnoge5LrrCj2eJN8g3IJdLTD4B/jK3Q6vo4Ql/Hoip9I8aB6fF+6RfDqg==", + "dev": true, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.19.1.tgz", + "integrity": "sha512-aFdAxuhzBFRWhy+H20nYu19+Km+gFfwNO4TEqyszkMcgBDYQjmPJ61erHxuT2ESJXhlhrO7I5EFIlZ+qGR8oVA==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.19.1", + "@typescript-eslint/visitor-keys": "6.19.1", + "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" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { + "version": "6.19.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.19.1.tgz", + "integrity": "sha512-gkdtIO+xSO/SmI0W68DBg4u1KElmIUo3vXzgHyGPs6cxgB0sa3TlptRAAE0hUY1hM6FcDKEv7aIwiTGm76cXfQ==", + "dev": true, + "dependencies": { + "@typescript-eslint/types": "6.19.1", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/parser/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/parser/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/scope-manager": { "version": "6.19.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.19.0.tgz", diff --git a/package.json b/package.json index c40ed1d..6113de9 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "@types/node": "^20.11.2", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.19.0", - "@typescript-eslint/parser": "^6.19.0", + "@typescript-eslint/parser": "^6.19.1", "concurrently": "^8.2.2", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", From 75b7ebb26adf6d9cd7503292e4b430142b4e6d94 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 16:12:01 +0000 Subject: [PATCH 32/41] chore(deps): bump i18next from 23.7.16 to 23.8.1 Bumps [i18next](https://github.com/i18next/i18next) from 23.7.16 to 23.8.1. - [Release notes](https://github.com/i18next/i18next/releases) - [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md) - [Commits](https://github.com/i18next/i18next/compare/v23.7.16...v23.8.1) --- updated-dependencies: - dependency-name: i18next dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2799782..61f50c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "discord-voip": "^0.1.3", "discord.js": "^14.14.1", "dotenv": "^16.3.1", - "i18next": "^23.7.16", + "i18next": "^23.8.1", "i18next-fs-backend": "^2.3.1", "mediaplex": "^0.0.9", "node-os-utils": "^1.3.7", @@ -4246,9 +4246,9 @@ } }, "node_modules/i18next": { - "version": "23.7.16", - "resolved": "https://registry.npmjs.org/i18next/-/i18next-23.7.16.tgz", - "integrity": "sha512-SrqFkMn9W6Wb43ZJ9qrO6U2U4S80RsFMA7VYFSqp7oc7RllQOYDCdRfsse6A7Cq/V8MnpxKvJCYgM8++27n4Fw==", + "version": "23.8.1", + "resolved": "https://registry.npmjs.org/i18next/-/i18next-23.8.1.tgz", + "integrity": "sha512-Yhe6oiJhigSh64ev7nVVywu7vHjuUG41MRmFKNwphbkadqTL1ozZFBQISflY7/ju+gL6I/SPfI1GgWQh1yYArA==", "funding": [ { "type": "individual", diff --git a/package.json b/package.json index c40ed1d..f0f1a3d 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,7 @@ "discord-voip": "^0.1.3", "discord.js": "^14.14.1", "dotenv": "^16.3.1", - "i18next": "^23.7.16", + "i18next": "^23.8.1", "i18next-fs-backend": "^2.3.1", "mediaplex": "^0.0.9", "node-os-utils": "^1.3.7", From cd90e7fc126b5b5afbf790e934af38427f2943fd Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 16:12:25 +0000 Subject: [PATCH 33/41] chore(deps-dev): bump @types/node from 20.11.2 to 20.11.10 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.11.2 to 20.11.10. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2799782..955118a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "devDependencies": { "@types/config": "^3.3.3", "@types/jest": "^29.5.11", - "@types/node": "^20.11.2", + "@types/node": "^20.11.10", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.19.0", "@typescript-eslint/parser": "^6.19.0", @@ -1761,9 +1761,9 @@ } }, "node_modules/@types/node": { - "version": "20.11.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.2.tgz", - "integrity": "sha512-cZShBaVa+UO1LjWWBPmWRR4+/eY/JR/UIEcDlVsw3okjWEu+rB7/mH6X3B/L+qJVHDLjk9QW/y2upp9wp1yDXA==", + "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" } diff --git a/package.json b/package.json index c40ed1d..fdbf13e 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ "devDependencies": { "@types/config": "^3.3.3", "@types/jest": "^29.5.11", - "@types/node": "^20.11.2", + "@types/node": "^20.11.10", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.19.0", "@typescript-eslint/parser": "^6.19.0", From f55b18b0836b1a960470998fdb948bdf8e3a5605 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 30 Jan 2024 09:21:26 +0000 Subject: [PATCH 34/41] chore(deps): bump dotenv from 16.3.1 to 16.4.1 Bumps [dotenv](https://github.com/motdotla/dotenv) from 16.3.1 to 16.4.1. - [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md) - [Commits](https://github.com/motdotla/dotenv/compare/v16.3.1...v16.4.1) --- updated-dependencies: - dependency-name: dotenv dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 61f50c9..803389e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "discord-player": "^6.6.7", "discord-voip": "^0.1.3", "discord.js": "^14.14.1", - "dotenv": "^16.3.1", + "dotenv": "^16.4.1", "i18next": "^23.8.1", "i18next-fs-backend": "^2.3.1", "mediaplex": "^0.0.9", @@ -3372,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" }, diff --git a/package.json b/package.json index f0f1a3d..0f49515 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "discord-player": "^6.6.7", "discord-voip": "^0.1.3", "discord.js": "^14.14.1", - "dotenv": "^16.3.1", + "dotenv": "^16.4.1", "i18next": "^23.8.1", "i18next-fs-backend": "^2.3.1", "mediaplex": "^0.0.9", From 80f8ec2fc4ff7f257d395fedb51f9c6850b932b9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 30 Jan 2024 09:24:00 +0000 Subject: [PATCH 35/41] chore(deps): bump pino from 8.17.1 to 8.17.2 Bumps [pino](https://github.com/pinojs/pino) from 8.17.1 to 8.17.2. - [Release notes](https://github.com/pinojs/pino/releases) - [Commits](https://github.com/pinojs/pino/compare/v8.17.1...v8.17.2) --- updated-dependencies: - dependency-name: pino dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 16 ++++++++-------- package.json | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2ff00e5..ddbcedc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "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": { @@ -6221,16 +6221,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", @@ -6467,9 +6467,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", diff --git a/package.json b/package.json index 2d07142..ce98db3 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "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": { From 54ca9ecfb9e4785fe0d463ee80be3f30a9c7856b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 30 Jan 2024 09:24:13 +0000 Subject: [PATCH 36/41] chore(deps-dev): bump @typescript-eslint/parser from 6.19.1 to 6.20.0 Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 6.19.1 to 6.20.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.20.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 50 +++++++++++++++++++++++------------------------ package.json | 2 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2ff00e5..fae9aa6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "@types/node": "^20.11.10", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.19.0", - "@typescript-eslint/parser": "^6.19.1", + "@typescript-eslint/parser": "^6.20.0", "concurrently": "^8.2.2", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", @@ -1854,15 +1854,15 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "6.19.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.19.1.tgz", - "integrity": "sha512-WEfX22ziAh6pRE9jnbkkLGp/4RhTpffr2ZK5bJ18M8mIfA8A+k97U9ZyaXCEJRlmMHh7R9MJZWXp/r73DzINVQ==", + "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.19.1", - "@typescript-eslint/types": "6.19.1", - "@typescript-eslint/typescript-estree": "6.19.1", - "@typescript-eslint/visitor-keys": "6.19.1", + "@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/parser/node_modules/@typescript-eslint/scope-manager": { - "version": "6.19.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.19.1.tgz", - "integrity": "sha512-4CdXYjKf6/6aKNMSly/BP4iCSOpvMmqtDzRtqFyyAae3z5kkqEjKndR5vDHL8rSuMIIWP8u4Mw4VxLyxZW6D5w==", + "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.19.1", - "@typescript-eslint/visitor-keys": "6.19.1" + "@typescript-eslint/types": "6.20.0", + "@typescript-eslint/visitor-keys": "6.20.0" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -1899,9 +1899,9 @@ } }, "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": { - "version": "6.19.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.19.1.tgz", - "integrity": "sha512-6+bk6FEtBhvfYvpHsDgAL3uo4BfvnTnoge5LrrCj2eJN8g3IJdLTD4B/jK3Q6vo4Ql/Hoip9I8aB6fF+6RfDqg==", + "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" @@ -1912,13 +1912,13 @@ } }, "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { - "version": "6.19.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.19.1.tgz", - "integrity": "sha512-aFdAxuhzBFRWhy+H20nYu19+Km+gFfwNO4TEqyszkMcgBDYQjmPJ61erHxuT2ESJXhlhrO7I5EFIlZ+qGR8oVA==", + "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.19.1", - "@typescript-eslint/visitor-keys": "6.19.1", + "@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", @@ -1940,12 +1940,12 @@ } }, "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { - "version": "6.19.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.19.1.tgz", - "integrity": "sha512-gkdtIO+xSO/SmI0W68DBg4u1KElmIUo3vXzgHyGPs6cxgB0sa3TlptRAAE0hUY1hM6FcDKEv7aIwiTGm76cXfQ==", + "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.19.1", + "@typescript-eslint/types": "6.20.0", "eslint-visitor-keys": "^3.4.1" }, "engines": { diff --git a/package.json b/package.json index 2d07142..f5e99f0 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "@types/node": "^20.11.10", "@types/node-os-utils": "^1.3.4", "@typescript-eslint/eslint-plugin": "^6.19.0", - "@typescript-eslint/parser": "^6.19.1", + "@typescript-eslint/parser": "^6.20.0", "concurrently": "^8.2.2", "eslint": "^8.56.0", "eslint-config-prettier": "^9.1.0", From a261215a7fefdd3b67ea53b943da17d819a67c25 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Tue, 30 Jan 2024 10:29:43 +0100 Subject: [PATCH 37/41] deps: update deps to latest --- package-lock.json | 181 +++++++++++----------------------------------- package.json | 8 +- 2 files changed, 45 insertions(+), 144 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2c89f0c..f2cad68 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "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.8.1", @@ -31,7 +31,7 @@ "@types/jest": "^29.5.11", "@types/node": "^20.11.10", "@types/node-os-utils": "^1.3.4", - "@typescript-eslint/eslint-plugin": "^6.19.0", + "@typescript-eslint/eslint-plugin": "^6.20.0", "@typescript-eslint/parser": "^6.20.0", "concurrently": "^8.2.2", "eslint": "^8.56.0", @@ -39,8 +39,8 @@ "eslint-plugin-prettier": "^5.1.3", "i18next-resources-for-ts": "^1.5.0", "jest": "^29.7.0", - "nodemon": "^3.0.2", - "prettier": "^3.2.2", + "nodemon": "^3.0.3", + "prettier": "^3.2.4", "ts-jest": "^29.1.2", "typescript": "^5.3.3" }, @@ -1819,16 +1819,16 @@ "dev": true }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.19.0.tgz", - "integrity": "sha512-DUCUkQNklCQYnrBSSikjVChdc84/vMPDQSgJTHBZ64G9bA9w0Crc0rd2diujKbTdp6w2J47qkeHQLoi0rpLCdg==", + "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.19.0", - "@typescript-eslint/type-utils": "6.19.0", - "@typescript-eslint/utils": "6.19.0", - "@typescript-eslint/visitor-keys": "6.19.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", @@ -1881,7 +1881,7 @@ } } }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/scope-manager": { + "node_modules/@typescript-eslint/scope-manager": { "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==", @@ -1898,113 +1898,14 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/types": { - "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" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/typescript-estree": { - "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.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" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/parser/node_modules/@typescript-eslint/visitor-keys": { - "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.20.0", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/parser/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/parser/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/scope-manager": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.19.0.tgz", - "integrity": "sha512-dO1XMhV2ehBI6QN8Ufi7I10wmUovmLU0Oru3n5LVlM2JuzB4M+dVphCPLkVpKvGij2j/pHBWuJ9piuXx+BhzxQ==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "6.19.0", - "@typescript-eslint/visitor-keys": "6.19.0" - }, - "engines": { - "node": "^16.0.0 || >=18.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.19.0.tgz", - "integrity": "sha512-mcvS6WSWbjiSxKCwBcXtOM5pRkPQ6kcDds/juxcy/727IQr3xMEcwr/YLHW2A2+Fp5ql6khjbKBzOyjuPqGi/w==", + "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.19.0", - "@typescript-eslint/utils": "6.19.0", + "@typescript-eslint/typescript-estree": "6.20.0", + "@typescript-eslint/utils": "6.20.0", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -2025,9 +1926,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.19.0.tgz", - "integrity": "sha512-lFviGV/vYhOy3m8BJ/nAKoAyNhInTdXpftonhWle66XHAtT1ouBlkjL496b5H5hb8dWXHwtypTqgtb/DEa+j5A==", + "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" @@ -2038,13 +1939,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.19.0.tgz", - "integrity": "sha512-o/zefXIbbLBZ8YJ51NlkSAt2BamrK6XOmuxSR3hynMIzzyMY33KuJ9vuMdFSXW+H0tVvdF9qBPTHA91HDb4BIQ==", + "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.19.0", - "@typescript-eslint/visitor-keys": "6.19.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", @@ -2090,17 +1991,17 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.19.0.tgz", - "integrity": "sha512-QR41YXySiuN++/dC9UArYOg4X86OAYP83OWTewpVx5ct1IZhjjgTLocj7QNxGhWoTqknsgpl7L+hGygCO+sdYw==", + "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.19.0", - "@typescript-eslint/types": "6.19.0", - "@typescript-eslint/typescript-estree": "6.19.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": { @@ -2115,12 +2016,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.19.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.19.0.tgz", - "integrity": "sha512-hZaUCORLgubBvtGpp1JEFEazcuEdfxta9j4iUwdSAr7mEsYYAp3EAUyCZk3VEEqGj6W+AV4uWyrDGtrlawAsgQ==", + "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.19.0", + "@typescript-eslint/types": "6.20.0", "eslint-visitor-keys": "^3.4.1" }, "engines": { @@ -5872,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", @@ -6381,9 +6282,9 @@ } }, "node_modules/prettier": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.2.tgz", - "integrity": "sha512-HTByuKZzw7utPiDO523Tt2pLtEyK7OibUD9suEJQrPUCYQqrHr74GGX6VidMrovbf/I50mPqr8j/II6oBAuc5A==", + "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" diff --git a/package.json b/package.json index c42edea..5455b3c 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "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.8.1", @@ -71,7 +71,7 @@ "@types/jest": "^29.5.11", "@types/node": "^20.11.10", "@types/node-os-utils": "^1.3.4", - "@typescript-eslint/eslint-plugin": "^6.19.0", + "@typescript-eslint/eslint-plugin": "^6.20.0", "@typescript-eslint/parser": "^6.20.0", "concurrently": "^8.2.2", "eslint": "^8.56.0", @@ -79,8 +79,8 @@ "eslint-plugin-prettier": "^5.1.3", "i18next-resources-for-ts": "^1.5.0", "jest": "^29.7.0", - "nodemon": "^3.0.2", - "prettier": "^3.2.2", + "nodemon": "^3.0.3", + "prettier": "^3.2.4", "ts-jest": "^29.1.2", "typescript": "^5.3.3" }, From ccc4f19cc0911f663b503b1dbef48842b902db29 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Tue, 30 Jan 2024 10:34:59 +0100 Subject: [PATCH 38/41] fix!: remove /guilds system command --- src/interactions/commands/system/guilds.ts | 102 --------------------- 1 file changed, 102 deletions(-) delete mode 100644 src/interactions/commands/system/guilds.ts diff --git a/src/interactions/commands/system/guilds.ts b/src/interactions/commands/system/guilds.ts deleted file mode 100644 index 70df12a..0000000 --- a/src/interactions/commands/system/guilds.ts +++ /dev/null @@ -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 { - 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(); From e85cd4dfc2438c4b981ad9ce6f9f0ee01b749ec5 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Tue, 30 Jan 2024 10:59:45 +0100 Subject: [PATCH 39/41] update language files --- locales/es-ES/bot.json | 16 ++++++++-------- locales/ro/bot.json | 38 +++++++++++++++++++------------------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/locales/es-ES/bot.json b/locales/es-ES/bot.json index 9e0426a..de6f9aa 100644 --- a/locales/es-ES/bot.json +++ b/locales/es-ES/bot.json @@ -46,7 +46,7 @@ "guilds": { "metadata": { "name": "gremios", - "description": "Muestra el top 25 de gremios por número de miembros." + "description": "Mostrar el top 25 de gremios por número de miembros." }, "topGuildsByMemberCount": "{{icon}} **Principales {{count}} servidores por cantidad de miembros ({{totalCount}} en total)**", "totalMembers": "**Total de miembros:** **`{{count}`**" @@ -62,7 +62,7 @@ }, "history": { "metadata": { - "name": "historia", + "name": "historial", "description": "Mostrar historial de canciones que se han reproducido.", "options": { "page": { @@ -153,7 +153,7 @@ "nowplaying": { "metadata": { "name": "reproduciendo", - "description": "Muestra información sobre la canción actual." + "description": "Mostrar información sobre la canción actual." }, "embedFields": { "author": "**Artista**", @@ -196,7 +196,7 @@ "queue": { "metadata": { "name": "cola", - "description": "Muestra las canciones que se han añadido a la cola.", + "description": "Mostrar las canciones que se han añadido a la cola.", "options": { "page": { "name": "página", @@ -293,7 +293,7 @@ "shards": { "metadata": { "name": "shards", - "description": "Muestra información sobre todos los shards conectados.", + "description": "Mostrar información sobre todos los fragmentos conectados.", "options": { "sort": { "name": "ordenar", @@ -341,7 +341,7 @@ "status": { "metadata": { "name": "estado", - "description": "Muestra el estado operativo del bot." + "description": "Mostrar el estado operativo del bot." }, "openSourceButtonLabel": "GitHub" }, @@ -355,13 +355,13 @@ "systemstatus": { "metadata": { "name": "Información del sistema", - "description": "Muestra el estado operativo del bot con información técnica adicional." + "description": "Mostrar el estado operativo del bot con información técnica adicional." } }, "volume": { "metadata": { "name": "volumen", - "description": "Muestra o cambia el volumen de reproducción.", + "description": "Mostrar o cambia el volumen de reproducción.", "options": { "percentage": { "name": "porcentaje", diff --git a/locales/ro/bot.json b/locales/ro/bot.json index 3159fc8..0d4e992 100644 --- a/locales/ro/bot.json +++ b/locales/ro/bot.json @@ -16,8 +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": "", - "trackReplayed": "" + "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": { @@ -73,7 +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": "", + "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": { @@ -148,7 +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": "" + "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": { @@ -161,7 +161,7 @@ "source": "**Sursa piesei**" }, "otherTracksInQueue_one": "O altă piesă în coadă...", - "otherTracksInQueue": "", + "otherTracksInQueue": "{{count}} alte piese în coada de aşteptare...", "playCount_zero": "Necunoscut", "playCount": "{{count, number}}" }, @@ -188,7 +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": "", + "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}}" @@ -209,7 +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": "" + "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": { @@ -270,14 +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": "", + "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": "" + "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": { @@ -292,7 +292,7 @@ }, "shards": { "metadata": { - "name": "", + "name": "cioburi", "description": "Afișează informații despre toate shardurile conectate.", "options": { "sort": { @@ -336,7 +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": "" + "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": { @@ -390,7 +390,7 @@ "skip": "Înainte" }, "footerPageNumber_one": "Pagina {{page}} din {{pageCount}} (o piesă)", - "footerPageNumber": "", + "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**", @@ -457,12 +457,12 @@ "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": "{{icon}} **player.events.on('playerSkip')**\nPiesă URL: {{trackUrl}}\n\n<@{{userId}}>", From 676c915e6efe4e7bf6604cf5fcb74080509c04ea Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Tue, 30 Jan 2024 11:00:01 +0100 Subject: [PATCH 40/41] organize command files into one folder --- .../player => slashcommands}/back.ts | 12 +++--- .../player => slashcommands}/filters.ts | 12 +++--- .../{commands/info => slashcommands}/help.ts | 8 ++-- .../player => slashcommands}/history.ts | 12 +++--- .../player => slashcommands}/join.ts | 12 +++--- .../player => slashcommands}/leave.ts | 12 +++--- .../player => slashcommands}/loop.ts | 12 +++--- .../player => slashcommands}/lyrics.ts | 10 ++--- .../player => slashcommands}/move.ts | 12 +++--- .../player => slashcommands}/nowplaying.ts | 12 +++--- .../player => slashcommands}/pause.ts | 10 ++--- .../player => slashcommands}/play.ts | 14 +++---- .../player => slashcommands}/queue.ts | 12 +++--- .../system => slashcommands}/reload.ts | 10 ++--- .../player => slashcommands}/remove.ts | 12 +++--- .../player => slashcommands}/seek.ts | 12 +++--- .../system => slashcommands}/shards.ts | 10 ++--- .../player => slashcommands}/shuffle.ts | 12 +++--- .../player => slashcommands}/skip.ts | 12 +++--- .../info => slashcommands}/status.ts | 10 ++--- .../player => slashcommands}/stop.ts | 12 +++--- .../system => slashcommands}/systemstatus.ts | 12 +++--- .../player => slashcommands}/volume.ts | 10 ++--- src/tests/help.test.ts | 2 +- src/utils/deploySlashCommands.ts | 21 ++++------ src/utils/registerClientInteractions.ts | 41 ++++++++----------- 26 files changed, 158 insertions(+), 168 deletions(-) rename src/interactions/{commands/player => slashcommands}/back.ts (94%) rename src/interactions/{commands/player => slashcommands}/filters.ts (96%) rename src/interactions/{commands/info => slashcommands}/help.ts (95%) rename src/interactions/{commands/player => slashcommands}/history.ts (96%) rename src/interactions/{commands/player => slashcommands}/join.ts (91%) rename src/interactions/{commands/player => slashcommands}/leave.ts (82%) rename src/interactions/{commands/player => slashcommands}/loop.ts (94%) rename src/interactions/{commands/player => slashcommands}/lyrics.ts (97%) rename src/interactions/{commands/player => slashcommands}/move.ts (93%) rename src/interactions/{commands/player => slashcommands}/nowplaying.ts (95%) rename src/interactions/{commands/player => slashcommands}/pause.ts (89%) rename src/interactions/{commands/player => slashcommands}/play.ts (97%) rename src/interactions/{commands/player => slashcommands}/queue.ts (96%) rename src/interactions/{commands/system => slashcommands}/reload.ts (92%) rename src/interactions/{commands/player => slashcommands}/remove.ts (96%) rename src/interactions/{commands/player => slashcommands}/seek.ts (95%) rename src/interactions/{commands/system => slashcommands}/shards.ts (96%) rename src/interactions/{commands/player => slashcommands}/shuffle.ts (81%) rename src/interactions/{commands/player => slashcommands}/skip.ts (94%) rename src/interactions/{commands/info => slashcommands}/status.ts (91%) rename src/interactions/{commands/player => slashcommands}/stop.ts (82%) rename src/interactions/{commands/system => slashcommands}/systemstatus.ts (90%) rename src/interactions/{commands/player => slashcommands}/volume.ts (93%) diff --git a/src/interactions/commands/player/back.ts b/src/interactions/slashcommands/back.ts similarity index 94% rename from src/interactions/commands/player/back.ts rename to src/interactions/slashcommands/back.ts index 79a2cb2..29290e1 100644 --- a/src/interactions/commands/player/back.ts +++ b/src/interactions/slashcommands/back.ts @@ -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() { diff --git a/src/interactions/commands/player/filters.ts b/src/interactions/slashcommands/filters.ts similarity index 96% rename from src/interactions/commands/player/filters.ts rename to src/interactions/slashcommands/filters.ts index 37897ab..bb5b8d0 100644 --- a/src/interactions/commands/player/filters.ts +++ b/src/interactions/slashcommands/filters.ts @@ -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'); diff --git a/src/interactions/commands/info/help.ts b/src/interactions/slashcommands/help.ts similarity index 95% rename from src/interactions/commands/info/help.ts rename to src/interactions/slashcommands/help.ts index 3ff15fd..14d66e6 100644 --- a/src/interactions/commands/info/help.ts +++ b/src/interactions/slashcommands/help.ts @@ -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() { diff --git a/src/interactions/commands/player/history.ts b/src/interactions/slashcommands/history.ts similarity index 96% rename from src/interactions/commands/player/history.ts rename to src/interactions/slashcommands/history.ts index 4946a42..b812541 100644 --- a/src/interactions/commands/player/history.ts +++ b/src/interactions/slashcommands/history.ts @@ -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() { diff --git a/src/interactions/commands/player/join.ts b/src/interactions/slashcommands/join.ts similarity index 91% rename from src/interactions/commands/player/join.ts rename to src/interactions/slashcommands/join.ts index 1c13ced..3174d04 100644 --- a/src/interactions/commands/player/join.ts +++ b/src/interactions/slashcommands/join.ts @@ -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 { diff --git a/src/interactions/commands/player/leave.ts b/src/interactions/slashcommands/leave.ts similarity index 82% rename from src/interactions/commands/player/leave.ts rename to src/interactions/slashcommands/leave.ts index 23560e6..bfa410f 100644 --- a/src/interactions/commands/player/leave.ts +++ b/src/interactions/slashcommands/leave.ts @@ -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() { diff --git a/src/interactions/commands/player/loop.ts b/src/interactions/slashcommands/loop.ts similarity index 94% rename from src/interactions/commands/player/loop.ts rename to src/interactions/slashcommands/loop.ts index a355eee..9702e3e 100644 --- a/src/interactions/commands/player/loop.ts +++ b/src/interactions/slashcommands/loop.ts @@ -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() { diff --git a/src/interactions/commands/player/lyrics.ts b/src/interactions/slashcommands/lyrics.ts similarity index 97% rename from src/interactions/commands/player/lyrics.ts rename to src/interactions/slashcommands/lyrics.ts index 7f80cda..8f795c8 100644 --- a/src/interactions/commands/player/lyrics.ts +++ b/src/interactions/slashcommands/lyrics.ts @@ -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 { diff --git a/src/interactions/commands/player/move.ts b/src/interactions/slashcommands/move.ts similarity index 93% rename from src/interactions/commands/player/move.ts rename to src/interactions/slashcommands/move.ts index 4670b4c..456d65e 100644 --- a/src/interactions/commands/player/move.ts +++ b/src/interactions/slashcommands/move.ts @@ -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() { diff --git a/src/interactions/commands/player/nowplaying.ts b/src/interactions/slashcommands/nowplaying.ts similarity index 95% rename from src/interactions/commands/player/nowplaying.ts rename to src/interactions/slashcommands/nowplaying.ts index 3381728..93db9b8 100644 --- a/src/interactions/commands/player/nowplaying.ts +++ b/src/interactions/slashcommands/nowplaying.ts @@ -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() { diff --git a/src/interactions/commands/player/pause.ts b/src/interactions/slashcommands/pause.ts similarity index 89% rename from src/interactions/commands/player/pause.ts rename to src/interactions/slashcommands/pause.ts index c392919..e43f9f9 100644 --- a/src/interactions/commands/player/pause.ts +++ b/src/interactions/slashcommands/pause.ts @@ -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() { diff --git a/src/interactions/commands/player/play.ts b/src/interactions/slashcommands/play.ts similarity index 97% rename from src/interactions/commands/player/play.ts rename to src/interactions/slashcommands/play.ts index 457bdaa..792ee3b 100644 --- a/src/interactions/commands/player/play.ts +++ b/src/interactions/slashcommands/play.ts @@ -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() { diff --git a/src/interactions/commands/player/queue.ts b/src/interactions/slashcommands/queue.ts similarity index 96% rename from src/interactions/commands/player/queue.ts rename to src/interactions/slashcommands/queue.ts index c7210dc..27a3c7e 100644 --- a/src/interactions/commands/player/queue.ts +++ b/src/interactions/slashcommands/queue.ts @@ -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 { diff --git a/src/interactions/commands/system/reload.ts b/src/interactions/slashcommands/reload.ts similarity index 92% rename from src/interactions/commands/system/reload.ts rename to src/interactions/slashcommands/reload.ts index dea92bc..c109992 100644 --- a/src/interactions/commands/system/reload.ts +++ b/src/interactions/slashcommands/reload.ts @@ -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 { diff --git a/src/interactions/commands/player/remove.ts b/src/interactions/slashcommands/remove.ts similarity index 96% rename from src/interactions/commands/player/remove.ts rename to src/interactions/slashcommands/remove.ts index a0965e4..9d1fcc9 100644 --- a/src/interactions/commands/player/remove.ts +++ b/src/interactions/slashcommands/remove.ts @@ -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() { diff --git a/src/interactions/commands/player/seek.ts b/src/interactions/slashcommands/seek.ts similarity index 95% rename from src/interactions/commands/player/seek.ts rename to src/interactions/slashcommands/seek.ts index 069e6e1..362c795 100644 --- a/src/interactions/commands/player/seek.ts +++ b/src/interactions/slashcommands/seek.ts @@ -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() { diff --git a/src/interactions/commands/system/shards.ts b/src/interactions/slashcommands/shards.ts similarity index 96% rename from src/interactions/commands/system/shards.ts rename to src/interactions/slashcommands/shards.ts index 3b83f0b..30bb2ee 100644 --- a/src/interactions/commands/system/shards.ts +++ b/src/interactions/slashcommands/shards.ts @@ -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() { diff --git a/src/interactions/commands/player/shuffle.ts b/src/interactions/slashcommands/shuffle.ts similarity index 81% rename from src/interactions/commands/player/shuffle.ts rename to src/interactions/slashcommands/shuffle.ts index 6880875..8520d36 100644 --- a/src/interactions/commands/player/shuffle.ts +++ b/src/interactions/slashcommands/shuffle.ts @@ -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() { diff --git a/src/interactions/commands/player/skip.ts b/src/interactions/slashcommands/skip.ts similarity index 94% rename from src/interactions/commands/player/skip.ts rename to src/interactions/slashcommands/skip.ts index 9752ac7..32a7f33 100644 --- a/src/interactions/commands/player/skip.ts +++ b/src/interactions/slashcommands/skip.ts @@ -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() { diff --git a/src/interactions/commands/info/status.ts b/src/interactions/slashcommands/status.ts similarity index 91% rename from src/interactions/commands/info/status.ts rename to src/interactions/slashcommands/status.ts index 1f51ca2..5d1d514 100644 --- a/src/interactions/commands/info/status.ts +++ b/src/interactions/slashcommands/status.ts @@ -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() { diff --git a/src/interactions/commands/player/stop.ts b/src/interactions/slashcommands/stop.ts similarity index 82% rename from src/interactions/commands/player/stop.ts rename to src/interactions/slashcommands/stop.ts index 8458cf5..355ed07 100644 --- a/src/interactions/commands/player/stop.ts +++ b/src/interactions/slashcommands/stop.ts @@ -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() { diff --git a/src/interactions/commands/system/systemstatus.ts b/src/interactions/slashcommands/systemstatus.ts similarity index 90% rename from src/interactions/commands/system/systemstatus.ts rename to src/interactions/slashcommands/systemstatus.ts index 2b088d1..e148bec 100644 --- a/src/interactions/commands/system/systemstatus.ts +++ b/src/interactions/slashcommands/systemstatus.ts @@ -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() { diff --git a/src/interactions/commands/player/volume.ts b/src/interactions/slashcommands/volume.ts similarity index 93% rename from src/interactions/commands/player/volume.ts rename to src/interactions/slashcommands/volume.ts index 0a5efdc..3c8307d 100644 --- a/src/interactions/commands/player/volume.ts +++ b/src/interactions/slashcommands/volume.ts @@ -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 { diff --git a/src/tests/help.test.ts b/src/tests/help.test.ts index 6b74448..a74f1fa 100644 --- a/src/tests/help.test.ts +++ b/src/tests/help.test.ts @@ -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'; diff --git a/src/utils/deploySlashCommands.ts b/src/utils/deploySlashCommands.ts index 9090f5b..77dff7e 100644 --- a/src/utils/deploySlashCommands.ts +++ b/src/utils/deploySlashCommands.ts @@ -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 { diff --git a/src/utils/registerClientInteractions.ts b/src/utils/registerClientInteractions.ts index e8df56f..149a3b2 100644 --- a/src/utils/registerClientInteractions.ts +++ b/src/utils/registerClientInteractions.ts @@ -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; } } } From 832a3a3193da2db63967260048981398ce8294b6 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Tue, 30 Jan 2024 11:07:25 +0100 Subject: [PATCH 41/41] lang: fix en-ES system command name invalid string format --- locales/es-ES/bot.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locales/es-ES/bot.json b/locales/es-ES/bot.json index de6f9aa..618424e 100644 --- a/locales/es-ES/bot.json +++ b/locales/es-ES/bot.json @@ -354,7 +354,7 @@ }, "systemstatus": { "metadata": { - "name": "Información del sistema", + "name": "estado-sistema", "description": "Mostrar el estado operativo del bot con información técnica adicional." } },