text: const Discord = require(`discord.js`);
  const {
    MessageEmbed
  } = require(`discord.js`);
  const config = require(`../../botconfig/config.json`);
  const ee = require(`../../botconfig/embed.json`);
  const emoji = require('../../emoji.json')
  const songoftheday = require(`../../botconfig/songoftheday.json`);
  const playermanager = require(`../../musichandlers/playermanager`);
  module.exports = {
    name: `playmusicmix`,
    category: `🎶 Music`,
    aliases: [`pmusicmix`, "pmm", "musicmix"],
    description: `Plays an awesome Music Mix`,
    usage: `playmusicmix`,
    parameters: {"type":"music", "activeplayer": false, "previoussong": false},
    run: async (client, message, args, cmduser, text, prefix, player) => {
      try{
        let link = "https://open.spotify.com/playlist/37i9dQZF1DXc6IFF23C9jj";
        if(args[0]){
          //ncs | no copyrighted music
          if (args[0].toLowerCase().startsWith("n")) link = "https://open.spotify.com/playlist/7sZbq8QGyMnhKPcLJvCUFD";
          //pop
          if (args[0].toLowerCase().startsWith("p")) link = "https://open.spotify.com/playlist/37i9dQZF1DXc6IFF23C9jj";
          //default
          if (args[0].toLowerCase().startsWith("d")) link = "https://open.spotify.com/playlist/37i9dQZF1DXc6IFF23C9jj";
          //remixes from Magic Release
          if (args[0].toLowerCase().startsWith("re")) link = "https://www.youtube.com/watch?v=NX7BqdQ1KeU&list=PLYUn4YaogdahwfEkuu5V14gYtTqODx7R2"
          //rock
          if (args[0].toLowerCase().startsWith("ro")) link = "https://open.spotify.com/playlist/37i9dQZF1DWXRqgorJj26U";
          //oldgaming
          if (args[0].toLowerCase().startsWith("o")) link = "https://www.youtube.com/watch?v=iFOAJ12lDDU&list=PLYUn4YaogdahPQPTnBGCrytV97h8ABEav"
          //gaming
          if (args[0].toLowerCase().startsWith("g")) link = "https://open.spotify.com/playlist/4a54P2VHy30WTi7gix0KW6";
          //Charts
          if(args[0].toLowerCase().startsWith("cha")) link = "https://www.youtube.com/playlist?list=PLMC9KNkIncKvYin_USF1qoJQnIyMAfRxl"
          //Chill
          if(args[0].toLowerCase().startsWith("chi")) link = "https://open.spotify.com/playlist/37i9dQZF1DX4WYpdgoIcn6";
          //Jazz
          if (args[0].toLowerCase().startsWith("j")) link = "https://open.spotify.com/playlist/37i9dQZF1DXbITWG1ZJKYt";
          //blues
          if (args[0].toLowerCase().startsWith("b")) link = "https://open.spotify.com/playlist/37i9dQZF1DXd9rSDyQguIk";
          //strange-fruits
          if (args[0].toLowerCase().startsWith("s")) link = "https://open.spotify.com/playlist/6xGLprv9fmlMgeAMpW0x51";
          //magic-release
          if (args[0].toLowerCase().startsWith("ma"))  link = "https://www.youtube.com/watch?v=WvMc5_RbQNc&list=PLYUn4Yaogdagvwe69dczceHTNm0K_ZG3P"
          //metal
          if (args[0].toLowerCase().startsWith("me")) link = "https://open.spotify.com/playlist/37i9dQZF1DX9qNs32fujYe";
          //heavy metal
          if (args[0].toLowerCase().startsWith("h")) link = "https://open.spotify.com/playlist/37i9dQZF1DX9qNs32fujYe";
        }
        message.channel.send({ embed: new MessageEmbed()
          .setColor(ee.color)
          .setAuthor(`Loading '${args[0] ? args[0] : "Default"}' Music Mix`, "https://imgur.com/xutrSuq.gif", link)
          .setTitle(`:notes: __**Other Options could be:**__`)
          .setDescription(`>>> \`\`\`blues, charts, chill, default, heavymetal, gaming, jazz, metal, magic-release, ncs, nocopyright, oldgaming, pop, remixes, rock, strange-fruits-gaming\`\`\``)
          .addField(`:muscle: **To play a different one type:**`, `> \`${prefix}playmusicmix <NAME>\`\n💡 **Example:**\n> \`${prefix}playmusicmix pop\``)
          .setFooter(ee.footertext, ee.footericon)
        })
        //play the SONG from YOUTUBE
        playermanager(client, message, Array(link), `song:youtube`, "songoftheday");
      } catch (e) {
        console.log(String(e.stack).bgRed)
        return message.channel.send(new MessageEmbed()
          .setColor(ee.wrongcolor)
          .setTitle(`<:no:833101993668771842> An error occurred`)
          .setDescription(`\`\`\`${e.message}\`\`\``)
        );
      }
    }
  };
  /**
   * @INFO
   * Bot Coded by Tomato#6966 | https://github.com/Tomato6966/discord-js-lavalink-Music-Bot-erela-js
   * @INFO
   * Work for Milrato Development | https://milrato.eu
   * @INFO
   * Please mention Him / Milrato Development, when using this Code!
   * @INFO
   */
  