From 7c24149781bf6c07aad80e5f13cd91ba4fdea33f Mon Sep 17 00:00:00 2001 From: Taken Date: Sat, 17 Feb 2024 18:23:58 +0100 Subject: [PATCH 1/2] Updated music nowplaying --- src/commands/music/nowplaying.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/commands/music/nowplaying.ts b/src/commands/music/nowplaying.ts index 4f0f255..5e65f3f 100644 --- a/src/commands/music/nowplaying.ts +++ b/src/commands/music/nowplaying.ts @@ -29,10 +29,23 @@ export default async function nowplaying(interaction: ChatInputCommandInteractio return } + const progressBar = queue.node.createProgressBar({ + leftChar: "▬", + rightChar: "▬", + separator: "|", + indicator: "🔘", + timecodes: true, + length: 15 + }) + await interaction.editReply({ embeds: [{ title: "Now Playing", - description: `[${current.title}](${current.url})`, + description: ` + [${current.title}](${current.url}) + + ${progressBar} + `, color: embedColor, thumbnail: { url: current.thumbnail From 69bf1a1d2d973ff2a80042f5eb351ebe98e520a9 Mon Sep 17 00:00:00 2001 From: Taken Date: Sat, 17 Feb 2024 18:40:36 +0100 Subject: [PATCH 2/2] Updated play command --- src/components/autocomplete/music.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/autocomplete/music.ts b/src/components/autocomplete/music.ts index 1d76160..587cb3f 100644 --- a/src/components/autocomplete/music.ts +++ b/src/components/autocomplete/music.ts @@ -19,14 +19,14 @@ export = { const player = useMainPlayer() const { tracks } = await player.search(focusedOption.value, { - searchEngine: QueryType.YOUTUBE_SEARCH + searchEngine: QueryType.AUTO_SEARCH }) const results = tracks.map(track => ({ - name: track.title.slice(0, 100), + name: `${track.title} [${track.author}]`, value: track.url })) - await interaction.respond(results.slice(0, 25)).catch() + await interaction.respond(results.slice(0, 10)).catch() } } as IAutocomplete \ No newline at end of file