const Discord = require('discord.js') const bot = new Discord.Client(); const { Player } = require('discord-player'); const player = new Player(bot); bot.player = player; bot.login('Nzc0NjcxODcwMTkxOTkyODQz.X6bLZg.2GAcYw699_8X_0yVhDrSci7uekU') bot.on("ready", bot =>{ console.log("Bot is Online!") }) bot.on("message", async message => { const prefix = '?'; const args = message.content.slice(prefix.length).trim().split(/ +/g); const command = args.shift().toLowerCase(); if (command === 'play'){ let track = await bot.player.play(message.member.voice.channel, args[0], message.member.user.tag); message.channel.send('Currently playing ${track.name}! - Requested by ${track.requestedBy}'); } if (command === 'stop'){ let track = await bot.player.stop(message.guild.id); message.channel.send("STOPPED"); } })