From 1e645020cc1a03aeba5e2f7c0b7bca7cc9df228c Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Mon, 10 Jun 2019 08:38:23 +0300 Subject: [PATCH] Update index.js --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 59606ad0..2977ee6c 100644 --- a/index.js +++ b/index.js @@ -310,6 +310,9 @@ Please provide a value to select one of the search results ranging from 1-10. return msg.channel.send(':x: There is nothing playing.'); } } + if (msg.content === `${PREFIX}`) { + return undefined; + } msg.channel.send(':x: Unknown command! Type -help for the list of commands!') return undefined; }