mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 02:00:20 +00:00
Update index.js
This commit is contained in:
parent
b8dc88ed85
commit
2a0d3aab24
7
index.js
7
index.js
@ -87,9 +87,6 @@ client.on('message', async msg => {
|
|||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
if (msg.member.guild.roles.find(x => x.name === 'DJ')) {
|
if (msg.member.guild.roles.find(x => x.name === 'DJ')) {
|
||||||
if (!msg.member.roles.find(x => x.name === 'DJ')) {
|
|
||||||
msg.channel.send(':x: i\'m sorry but you need to have the \'DJ\' role use music commands!')
|
|
||||||
}
|
|
||||||
if (msg.member.roles.find(x => x.name === 'DJ')) {
|
if (msg.member.roles.find(x => x.name === 'DJ')) {
|
||||||
const args = msg.content.split(' ');
|
const args = msg.content.split(' ');
|
||||||
const searchString = args.slice(1).join(' ');
|
const searchString = args.slice(1).join(' ');
|
||||||
@ -203,6 +200,10 @@ Please provide a value to select one of the search results ranging from __1-10__
|
|||||||
msg.channel.send(':x: Unknown command! Type -help for the list of commands!')
|
msg.channel.send(':x: Unknown command! Type -help for the list of commands!')
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
if (!msg.member.roles.find(x => x.name === 'DJ')) {
|
||||||
|
msg.channel.send(':x: i\'m sorry but you need to have the \'DJ\' role use music commands!')
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (msg.content === `${PREFIX}`) return;
|
if (msg.content === `${PREFIX}`) return;
|
||||||
msg.channel.send(':x: Unknown command! Type -help for the list of commands!')
|
msg.channel.send(':x: Unknown command! Type -help for the list of commands!')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user