From 5f27195b6b6f74511286fe3772599e89eff2def5 Mon Sep 17 00:00:00 2001 From: entar Date: Fri, 23 May 2025 06:41:31 +0700 Subject: [PATCH] Added a bit more messages on process of downloading music --- commands/voice.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/commands/voice.js b/commands/voice.js index 310343b..c4295aa 100644 --- a/commands/voice.js +++ b/commands/voice.js @@ -47,10 +47,12 @@ module.exports = [ connection = getVoiceConnection(ctx.guild.id) } + const reply = await ctx.reply("Loading music data.") + // Running yt-dlp (getting music title) const metadata = await ytDlp.getVideoInfo(link); - ctx.reply(`Playing ${metadata.title}`) + await reply.edit(`Downloading ${metadata.title}`) // Running yt-dlp (downloading music) const music = ytDlp.exec([ @@ -64,6 +66,8 @@ module.exports = [ '--audio-format', 'mp3' ]).on('close', () => { + reply.edit(`Playing ${metadata.title}`) + // Stopping old audioplayer if (players[ctx.guild.id]) { players[ctx.guild.id].stop()