mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-14 03:30:18 +00:00
added songselection setting
This commit is contained in:
parent
1190bd7de3
commit
79a53ecb03
@ -13,6 +13,7 @@ module.exports = {
|
|||||||
.addField('permissions', 'Change whether to require permissions to use eg `skip, stop, pause, loop, etc...`', true)
|
.addField('permissions', 'Change whether to require permissions to use eg `skip, stop, pause, loop, etc...`', true)
|
||||||
.addField('setdj', 'Set a DJ role. This will allow chosen users to freely use all Musix commands. This will automatically set the `permissions` settings to true in order for the `DJ` role to have effect!', true)
|
.addField('setdj', 'Set a DJ role. This will allow chosen users to freely use all Musix commands. This will automatically set the `permissions` settings to true in order for the `DJ` role to have effect!', true)
|
||||||
.addField('announcesongs', 'Whether to announce songs that start playing or not.')
|
.addField('announcesongs', 'Whether to announce songs that start playing or not.')
|
||||||
|
.addField('songselection', 'Will i ask to select a song from the top 10 queries or start playing the first result instantly.')
|
||||||
.setFooter(`how to use: ${prefix}settings <Setting name> <value>`)
|
.setFooter(`how to use: ${prefix}settings <Setting name> <value>`)
|
||||||
.setAuthor(client.user.username, client.user.displayAvatarURL)
|
.setAuthor(client.user.username, client.user.displayAvatarURL)
|
||||||
.setColor('#b50002')
|
.setColor('#b50002')
|
||||||
|
12
commands/settings/songSelection.js
Normal file
12
commands/settings/songSelection.js
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
module.exports = {
|
||||||
|
name: 'songselection',
|
||||||
|
async execute(message, args, client, Discord, prefix) {
|
||||||
|
if (!client.global.db.guilds[message.guild.id].dj) {
|
||||||
|
message.channel.send(':white_check_mark: Songselection now set to `true`!');
|
||||||
|
client.global.db.guilds[message.guild.id].dj = true;
|
||||||
|
} else {
|
||||||
|
client.global.db.guilds[message.guild.id].dj = false;
|
||||||
|
message.channel.send(':white_check_mark: Songselection now set to `false`');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user