From 102b10df79eb84baece973746a9c2b1c31ed5943 Mon Sep 17 00:00:00 2001 From: Matte <51192395+MatteZ02@users.noreply.github.com> Date: Sun, 20 Oct 2019 20:59:17 +0300 Subject: [PATCH] Update play.js --- funcs/play.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/funcs/play.js b/funcs/play.js index e89bfbd8..10b3683a 100644 --- a/funcs/play.js +++ b/funcs/play.js @@ -25,11 +25,12 @@ 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(embed);*/ + serverQueue.textChannel.send('Playing'); }