Fixes unknown command reply

This commit is contained in:
Indrajith K L
2021-03-11 19:51:37 +05:30
parent 94f9820ec9
commit beab08570b

View File

@@ -10,7 +10,7 @@ client.on('message', (message) => {
const commandReply = parseCMD(message); const commandReply = parseCMD(message);
if (commandReply && (typeof commandReply != "object")) { if (commandReply && (typeof commandReply != "object")) {
message.reply(commandReply); message.reply(commandReply);
} else if(typeof commandReply != "object"){ } else if(!commandReply){
generateConfusionGif(message); generateConfusionGif(message);
} }