From 20938dd9b95e98db0a3c0650c1e75648209073b0 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Sun, 16 Jun 2019 16:28:54 +0300 Subject: [PATCH] Update index.js --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a750aef4..40a5fd74 100644 --- a/index.js +++ b/index.js @@ -201,13 +201,13 @@ Please provide a value to select one of the search results ranging from __1-10__ return undefined; } if (msg.content === `${PREFIX}`) return; - msg.channel.send(':x: Unknown command! Type -help for the list of commands!') - var coms = [] + var coms = ['-play','-queue','-np','-volume','-pause','-resume','-stop','-skip'] if (msg.content.includes(coms[i])) { 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; } + msg.channel.send(':x: Unknown command! Type -help for the list of commands!') } } else {