1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-22 21:13:18 +00:00

Update add.js

This commit is contained in:
MatteZ02 2019-11-03 09:53:40 +02:00
parent 97adfdbf86
commit 25f76daf88

View File

@ -6,7 +6,7 @@ module.exports = {
async execute(message, args, client, Discord, prefix) {
if (client.global.db.playlists[message.guild.id].saved) {
const serverQueue = client.queue.get(message.guild.id);
const youtube = new YouTube(client.config.apikey);
const youtube = new YouTube(client.config.api_key);
const searchString = args.slice(2).join(" ");
const url = args[2] ? args[2].replace(/<(.+)>/g, "$1") : "";
if (!args[2]) return message.channel.send(':x: You need to use a link or search for a song!');