diff --git a/funcs/play.js b/funcs/play.js index 10b3683a..e89bfbd8 100644 --- a/funcs/play.js +++ b/funcs/play.js @@ -25,12 +25,11 @@ module.exports = async function (guild, song, client, message, seek) { }); dispatcher.setVolume(serverQueue.volume / 10); dispatcher.on("error", error => console.error(error)); - /*let data = await Promise.resolve(ytdl.getInfo(serverQueue.songs[0].url)); + let data = await Promise.resolve(ytdl.getInfo(serverQueue.songs[0].url)); let songtime = (data.length_seconds * 1000).toFixed(0); const embed = new Discord.RichEmbed() .setTitle(`:musical_note: Start playing: **${song.title}**`) .setDescription(`Song duration: \`${client.funcs.msToTime(songtime)}\``) .setColor("#b50002") - serverQueue.textChannel.send(embed);*/ - serverQueue.textChannel.send('Playing'); + serverQueue.textChannel.send(embed); }