1
0
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:
MatteZ02 2019-06-09 22:42:05 +03:00
parent 81eda3780d
commit b66a3b73d7

View File

@ -71,16 +71,17 @@ client.on('message', async msg => {
} }
if (msg.content === `${PREFIX}info`) { if (msg.content === `${PREFIX}info`) {
var line = '**>-----------------------------------------------------------------------<**'; var line = '**>-----------------------------------------------------------------------<**';
var coder = msg.guild.roles.find(x => x.name === 'Coder') ? true : false;
const embed = new Discord.RichEmbed() const embed = new Discord.RichEmbed()
.setTitle('**Musix instructions and info**:') .setTitle('**Musix instructions and info**:')
.addField('To use Musix you need a role called DJ !', line, true) .addField('This is a musix developement version and is not avaiable for public usage!', line, true)
.addField('If you have any problems with musix please contact Matte#5254!', line, true) .addField('You will need a role called \'Coder\' to use the developement version!', 'Coder role existance: ' + coder, true)
.setAuthor('Musix', 'https://cdn.discordapp.com/avatars/572405135658188800/04c6f22b7600ddecfbc245dd3ec10f9f.png?size=2048') .setAuthor('Musix', 'https://cdn.discordapp.com/avatars/572405135658188800/04c6f22b7600ddecfbc245dd3ec10f9f.png?size=2048')
.setColor('#b50002') .setColor('#b50002')
msg.channel.send(embed); msg.channel.send(embed);
return undefined; return undefined;
} }
if(msg.content === `${PREFIX}musixinvite`) { if(msg.content === `${PREFIX}invite`) {
msg.channel.send('https://bit.ly/2V3D0p7') msg.channel.send('https://bit.ly/2V3D0p7')
return undefined; return undefined;
} }
@ -310,6 +311,7 @@ Please provide a value to select one of the search results ranging from 1-10.
return undefined; return undefined;
} }
msg.channel.send('Unknown command! Type -help for the list of commands!')
} }
}); });