mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 05:10:17 +00:00
Update playlist.js
This commit is contained in:
parent
1917fe7784
commit
72e600454f
@ -70,6 +70,7 @@ module.exports = {
|
||||
};
|
||||
message.channel.send(":white_check_mark: Queue saved!");
|
||||
} else if (args[1] === 'add') {
|
||||
if (client.global.db.playlists[args[2]].saved) {
|
||||
const youtube = new YouTube(client.config.apikey);
|
||||
const searchString = args.slice(2).join(" ");
|
||||
const url = args[2] ? args[2].replace(/<(.+)>/g, "$1") : "";
|
||||
@ -110,11 +111,12 @@ module.exports = {
|
||||
}
|
||||
client.global.db.playlists[message.guild.id].songs.push(song);
|
||||
message.channel.send(`:white_check_mark: ${song.title} added to the playlist!`);
|
||||
} else return message.channel.send(':x: There is no playlist saved! Start by using the save option!')
|
||||
} else {
|
||||
const embed = new Discord.RichEmbed()
|
||||
.setTitle('Options for playlist!')
|
||||
.addField('play', 'Play the guild specific queue.', true)
|
||||
.addField('save', 'Save the currently playing queue.', true)
|
||||
.addField('save', 'Save the currently playing queue. Note that this will overwrite the currently saved queue!', true)
|
||||
.addField('add', 'Add songs to the playlist. Like song selection', true)
|
||||
.setFooter(`how to use: ${prefix}playlist <Option> <Optional option>`)
|
||||
.setAuthor(client.user.username, client.user.displayAvatarURL)
|
||||
|
Loading…
Reference in New Issue
Block a user