aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndrajith K L2021-03-11 19:51:37 +0530
committerIndrajith K L2021-03-11 19:51:37 +0530
commitbeab08570bf52b1903f9ee9b3ef05a88f3774b44 (patch)
tree24a0d29186b06e0527b9304fd9b83a0004959db0
parent94f9820ec90f52dd7477a1646aa5e254cd97a4d2 (diff)
downloadradio-bot-beab08570bf52b1903f9ee9b3ef05a88f3774b44.tar.gz
radio-bot-beab08570bf52b1903f9ee9b3ef05a88f3774b44.tar.bz2
radio-bot-beab08570bf52b1903f9ee9b3ef05a88f3774b44.zip
Fixes unknown command reply
-rw-r--r--src/main.js2
1 files changed, 1 insertions, 1 deletions
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);
}