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()