1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 08:10:18 +00:00
musix-oss/commands/settings/songSelection.js

12 lines
544 B
JavaScript
Raw Normal View History

2019-11-14 18:23:51 +00:00
module.exports = {
name: 'songselection',
async execute(message, args, client, Discord, prefix) {
2019-11-18 18:36:18 +00:00
if (!client.global.db.guilds[message.guild.id].songSelection) {
2019-11-14 18:23:51 +00:00
message.channel.send(':white_check_mark: Songselection now set to `true`!');
2019-11-18 18:36:18 +00:00
client.global.db.guilds[message.guild.id].songSelection = true;
2019-11-14 18:23:51 +00:00
} else {
2019-11-18 18:36:18 +00:00
client.global.db.guilds[message.guild.id].songSelection = false;
2019-11-14 18:23:51 +00:00
message.channel.send(':white_check_mark: Songselection now set to `false`');
}
}
};