mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 03:33:17 +00:00
editing console logs
This commit is contained in:
parent
81f317105b
commit
59b578c5a5
@ -18,6 +18,7 @@ module.exports = {
|
||||
console.log("no serverQueue")
|
||||
if (!voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in a voice channel to play music!');
|
||||
} else {
|
||||
console.log("serverQueue")
|
||||
if (voiceChannel !== serverQueue.voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in the same voiceChannel as Musix to play music!');
|
||||
}
|
||||
if (!args[1]) return message.channel.send(':x: You need to use a link or search for a song!');
|
||||
|
@ -29,18 +29,18 @@ module.exports = async function (guild, song, client, message, seek) {
|
||||
console.log("playing next song")
|
||||
client.funcs.play(guild, serverQueue.songs[0], client, message);
|
||||
});
|
||||
console.log("settings volume")
|
||||
console.log("setting volume")
|
||||
dispatcher.setVolume(serverQueue.volume / 10);
|
||||
console.log("checking for errors")
|
||||
dispatcher.on("error", error => console.error(error));
|
||||
console.log("defining data")
|
||||
let data = await Promise.resolve(ytdl.getInfo(serverQueue.songs[0].url));
|
||||
console.log("defining songtime")
|
||||
let songtime = (data.length_seconds * 1000).toFixed(0);
|
||||
console.log("defining data |")
|
||||
//let data = await Promise.resolve(ytdl.getInfo(serverQueue.songs[0].url));
|
||||
console.log("defining songtime |")
|
||||
//let songtime = (data.length_seconds * 1000).toFixed(0);
|
||||
console.log("creating embed")
|
||||
const embed = new Discord.RichEmbed()
|
||||
.setTitle(`:musical_note: Start playing: **${song.title}**`)
|
||||
.setDescription(`Song duration: \`${client.funcs.msToTime(songtime)}\``)
|
||||
//.setDescription(`Song duration: \`${client.funcs.msToTime(songtime)}\``)
|
||||
.setColor("#b50002")
|
||||
console.log("sending embed")
|
||||
return serverQueue.textChannel.send(embed);
|
||||
|
Loading…
Reference in New Issue
Block a user