mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 00:23:17 +00:00
Update index.js
This commit is contained in:
parent
33e87d8774
commit
ca15b1361e
6
index.js
6
index.js
@ -27,6 +27,7 @@ client.on('ready', () => { //startup stuff
|
|||||||
});
|
});
|
||||||
|
|
||||||
client.on('message', msg => {
|
client.on('message', msg => {
|
||||||
|
if (msg.member.guild.roles.find(x => x.name === 'DJ')) {
|
||||||
if (msg.content === '!test') {
|
if (msg.content === '!test') {
|
||||||
if (msg.author.username === 'Matte') {
|
if (msg.author.username === 'Matte') {
|
||||||
msg.channel.send('Bot is currently online hosted!')
|
msg.channel.send('Bot is currently online hosted!')
|
||||||
@ -76,8 +77,6 @@ client.on('message', msg => {
|
|||||||
.setColor('#b50002')
|
.setColor('#b50002')
|
||||||
msg.channel.send(embed);
|
msg.channel.send(embed);
|
||||||
}
|
}
|
||||||
if(msg.content === `${PREFIX}invite`) {
|
|
||||||
msg.channel.send('https://bit.ly/2V3D0p7')
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -86,6 +85,9 @@ client.on('message', async msg => {
|
|||||||
if (msg.content.startsWith(`${PREFIX}`)) {
|
if (msg.content.startsWith(`${PREFIX}`)) {
|
||||||
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`) {
|
||||||
|
msg.channel.send('https://bit.ly/2V3D0p7')
|
||||||
|
}
|
||||||
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!')
|
||||||
}
|
}
|
||||||
if (msg.member.roles.find(x => x.name === 'DJ')) {
|
if (msg.member.roles.find(x => x.name === 'DJ')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user