From b66a3b73d7cc3c7c8cd2758e955d1bf7a7acfab1 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sun, 9 Jun 2019 22:42:05 +0300 Subject: [PATCH] Update index.js --- index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index faabd350..1db413af 100644 --- a/index.js +++ b/index.js @@ -71,16 +71,17 @@ client.on('message', async msg => { } if (msg.content === `${PREFIX}info`) { var line = '**>-----------------------------------------------------------------------<**'; + var coder = msg.guild.roles.find(x => x.name === 'Coder') ? true : false; const embed = new Discord.RichEmbed() - .setTitle('**Musix instructions and info**:') - .addField('To use Musix you need a role called DJ !', line, true) - .addField('If you have any problems with musix please contact Matte#5254!', line, true) + .setTitle('**Musix instructions and info**:') + .addField('This is a musix developement version and is not avaiable for public usage!', 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') .setColor('#b50002') msg.channel.send(embed); return undefined; } - if(msg.content === `${PREFIX}musixinvite`) { + if(msg.content === `${PREFIX}invite`) { msg.channel.send('https://bit.ly/2V3D0p7') return undefined; } @@ -310,6 +311,7 @@ Please provide a value to select one of the search results ranging from 1-10. return undefined; } + msg.channel.send('Unknown command! Type -help for the list of commands!') } });