SHARE
TWEET

Untitled

a guest Aug 20th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let queue = {}; //at the start
  2.  
  3. if (message.content.startsWith(prefix + 'queue0)) {
  4.   } else if (command === 'queue') {
  5.       let index = "0"
  6.         if (!serverQueue) return msg.channel.send(':x: there is nothing playing.');
  7.         else {
  8.                let Embed = new Discord.RichEmbed()
  9.                    .setAuthor("MUSIC QUEUE", msg.author.avatarURL)
  10.                    .setColor("RANDOM")
  11.                  //  .setThumbnail(serverQueue.songs[0].get().Thumbnail)
  12.                    .addField("current Song:", `**- [${serverQueue.songs[0].title}](${serverQueue.songs[0].url})**`)
  13.                    .addField("next Song:", `**- [${serverQueue.songs[1].title}](${serverQueue.songs[1].url})**`)
  14.                    .setDescription("**Queue:**\n"+serverQueue.songs.map(song => `**${++index})** **[${song.title}](${song.url})**`).join('\n'))
  15.                    .setFooter(`${client.user.username}`, client.user.avatarURL)
  16.                    .setTimestamp()
  17.                   msg.channel.send(Embed);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top