From beab08570bf52b1903f9ee9b3ef05a88f3774b44 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Thu, 11 Mar 2021 19:51:37 +0530 Subject: Fixes unknown command reply --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 4a3c51d..9eeb182 100644 --- a/src/main.js +++ b/src/main.js @@ -10,7 +10,7 @@ client.on('message', (message) => { const commandReply = parseCMD(message); if (commandReply && (typeof commandReply != "object")) { message.reply(commandReply); - } else if(typeof commandReply != "object"){ + } else if(!commandReply){ generateConfusionGif(message); } -- cgit v1.2.3