mirror of
https://github.com/musix-org/musix-oss
synced 2026-11-14 02:41:40 +00:00
Option handler for playlists and settings. Exe function to execute command files. Command aliases updated.
This commit is contained in:
1 parent
1899c8647b
commit
8615735431
33 files changed
+392
-277
No files matched your search
@@ -0,0 +1,13 @@
|
||||
module.exports = {
|
||||
name: 'save',
|
||||
async execute(message, args, client, Discord, 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!");
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user