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

13 lines
536 B
JavaScript
Raw Normal View History

2019-11-14 18:23:51 +00:00
module.exports = {
name: 'songselection',
2024-02-09 09:53:30 +00:00
async execute(message, args, client, 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`');
}
}
2024-02-09 09:53:30 +00:00
};