mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-22 21:13:18 +00:00
Update index.js
This commit is contained in:
parent
ca15b1361e
commit
6b70f6599d
5
index.js
5
index.js
@ -78,6 +78,9 @@ client.on('message', msg => {
|
|||||||
msg.channel.send(embed);
|
msg.channel.send(embed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (msg.content === `${PREFIX}invite`) {
|
||||||
|
msg.channel.send('https://bit.ly/2V3D0p7')
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on('message', async msg => {
|
client.on('message', async msg => {
|
||||||
@ -86,7 +89,7 @@ client.on('message', async msg => {
|
|||||||
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')) {
|
if (!msg.member.roles.find(x => x.name === 'DJ')) {
|
||||||
if (msg.content === `${PREFIX}invite`) {
|
if (msg.content === `${PREFIX}invite`) {
|
||||||
msg.channel.send('https://bit.ly/2V3D0p7')
|
return undefined
|
||||||
}
|
}
|
||||||
msg.channel.send(':x: i\'m sorry you need to have the \'DJ\' role!')
|
msg.channel.send(':x: i\'m sorry you need to have the \'DJ\' role!')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user