mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-14 16:00:17 +00:00
12 lines
555 B
JavaScript
12 lines
555 B
JavaScript
|
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`!');
|
||
|
}
|
||
|
}
|
||
|
};
|