From 2515e781b824c6fa31dc91451e53bacda6e47ea4 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sat, 12 Oct 2019 11:13:58 +0300 Subject: [PATCH] Revert "Update play.js" This reverts commit 9821119f3da9a882c91e0ff4070ab5272e263b4a. --- funcs/play.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/funcs/play.js b/funcs/play.js index aff18589..e89bfbd8 100644 --- a/funcs/play.js +++ b/funcs/play.js @@ -3,7 +3,6 @@ module.exports = async function (guild, song, client, message, seek) { const ytdl = require('ytdl-core'); const serverQueue = client.queue.get(guild.id); if (!song) { - console.log("no song") serverQueue.voiceChannel.leave(); client.queue.delete(guild.id); return; @@ -24,17 +23,13 @@ module.exports = async function (guild, song, client, message, seek) { serverQueue.songs.shift(); client.funcs.play(guild, serverQueue.songs[0], client, message); }); - console.log("settings volume") 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); - 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") - console.log("sending embed") serverQueue.textChannel.send(embed); }