mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-16 15:46:00 +00:00
Option handler for playlists and settings. Exe function to execute command files. Command aliases updated.
This commit is contained in:
12
commands/settings/announcesongs.js
Normal file
12
commands/settings/announcesongs.js
Normal file
@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
name: 'announcesongs',
|
||||
async execute(message, args, client, Discord, prefix) {
|
||||
if (client.global.db.guilds[message.guild.id].startPlaying) {
|
||||
client.global.db.guilds[message.guild.id].startPlaying = false;
|
||||
return message.channel.send(':white_check_mark: announcesongs now set to `false`!');
|
||||
} else {
|
||||
client.global.db.guilds[message.guild.id].startPlaying = true;
|
||||
return message.channel.send(':white_check_mark: announcesongs now set to `true`!');
|
||||
}
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user