Fixes unknown command reply
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user