1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 03:33:17 +00:00
musix-oss/commands/playlist/save.js

14 lines
490 B
JavaScript
Raw Normal View History

module.exports = {
name: 'save',
2024-02-09 09:53:30 +00:00
async execute(message, args, client, prefix) {
const serverQueue = client.queue.get(message.guild.id);
if (!serverQueue) return message.channel.send(':x: There is nothing playing!');
client.global.db.playlists[message.guild.id] = {
songs: serverQueue.songs,
firstSong: serverQueue.songs[0],
saved: true,
};
message.channel.send(":white_check_mark: Queue saved!");
}
2024-02-09 09:53:30 +00:00
};