From 879efe23b9d8d345450e10d99dadba675ce1255d Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sat, 12 Oct 2019 11:13:55 +0300 Subject: [PATCH] Revert "Update play.js" This reverts commit 10288ed81e103e8f8106ab53b9078c338277f6d5. --- funcs/play.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/funcs/play.js b/funcs/play.js index bf5be0e3..aff18589 100644 --- a/funcs/play.js +++ b/funcs/play.js @@ -28,13 +28,13 @@ module.exports = async function (guild, song, client, message, seek) { dispatcher.setVolume(serverQueue.volume / 10); dispatcher.on("error", error => console.error(error)); console.log("defining data & songtime") - //let data = await Promise.resolve(ytdl.getInfo(serverQueue.songs[0].url)); - //let songtime = (data.length_seconds * 1000).toFixed(0); + let data = await Promise.resolve(ytdl.getInfo(serverQueue.songs[0].url)); + let songtime = (data.length_seconds * 1000).toFixed(0); console.log("defining embed") - //const embed = new Discord.RichEmbed() - //.setTitle(`:musical_note: Start playing: **${song.title}**`) - //.setDescription(`Song duration: \`${client.funcs.msToTime(songtime)}\``) - //.setColor("#b50002") + const embed = new Discord.RichEmbed() + .setTitle(`:musical_note: Start playing: **${song.title}**`) + .setDescription(`Song duration: \`${client.funcs.msToTime(songtime)}\``) + .setColor("#b50002") console.log("sending embed") - serverQueue.textChannel.send("Playing"); + serverQueue.textChannel.send(embed); }