1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-14 03:30:18 +00:00

Revert "Update play.js"

This reverts commit 10288ed81e.
This commit is contained in:
MatteZ02 2019-10-12 11:13:55 +03:00
parent 301eb70ea9
commit 879efe23b9

View File

@ -28,13 +28,13 @@ module.exports = async function (guild, song, client, message, seek) {
dispatcher.setVolume(serverQueue.volume / 10); dispatcher.setVolume(serverQueue.volume / 10);
dispatcher.on("error", error => console.error(error)); dispatcher.on("error", error => console.error(error));
console.log("defining data & songtime") console.log("defining data & songtime")
//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); let songtime = (data.length_seconds * 1000).toFixed(0);
console.log("defining embed") console.log("defining embed")
//const embed = new Discord.RichEmbed() const embed = new Discord.RichEmbed()
//.setTitle(`:musical_note: Start playing: **${song.title}**`) .setTitle(`:musical_note: Start playing: **${song.title}**`)
//.setDescription(`Song duration: \`${client.funcs.msToTime(songtime)}\``) .setDescription(`Song duration: \`${client.funcs.msToTime(songtime)}\``)
//.setColor("#b50002") .setColor("#b50002")
console.log("sending embed") console.log("sending embed")
serverQueue.textChannel.send("Playing"); serverQueue.textChannel.send(embed);
} }