1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-14 03:30:18 +00:00
musix-oss/commands/settings/announcesongs.js

12 lines
491 B
JavaScript
Raw Normal View History

2020-02-05 20:02:53 +00:00
module.exports = {
name: 'announcesongs',
async execute(msg, args, client, Discord, prefix) {
if (client.global.db.guilds[msg.guild.id].startPlaying) {
client.global.db.guilds[msg.guild.id].startPlaying = false;
2020-03-12 11:56:31 +00:00
return msg.channel.send(client.messages.announceSongsFalse);
2020-02-05 20:02:53 +00:00
} else {
client.global.db.guilds[msg.guild.id].startPlaying = true;
2020-03-12 11:56:31 +00:00
return msg.channel.send(client.messages.announceSongsTrue);
2020-02-05 20:02:53 +00:00
}
}
};