mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 00:23:17 +00:00
Update add.js
This commit is contained in:
parent
97adfdbf86
commit
25f76daf88
@ -6,7 +6,7 @@ module.exports = {
|
|||||||
async execute(message, args, client, Discord, prefix) {
|
async execute(message, args, client, Discord, prefix) {
|
||||||
if (client.global.db.playlists[message.guild.id].saved) {
|
if (client.global.db.playlists[message.guild.id].saved) {
|
||||||
const serverQueue = client.queue.get(message.guild.id);
|
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 searchString = args.slice(2).join(" ");
|
||||||
const url = args[2] ? args[2].replace(/<(.+)>/g, "$1") : "";
|
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!');
|
if (!args[2]) return message.channel.send(':x: You need to use a link or search for a song!');
|
||||||
|
Loading…
Reference in New Issue
Block a user