From 19b51ecfb34ac044845068010cdf3526f57cca9d Mon Sep 17 00:00:00 2001 From: ION606 Date: Fri, 13 May 2022 12:25:15 +0300 Subject: [PATCH] Accidentally made it impossible to execute commands (forgot a != sign) --- main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index aa1f91a..09df8dc 100644 --- a/main.js +++ b/main.js @@ -117,8 +117,10 @@ bot.on('messageCreate', (message) => { //Performes the command //Anime uses if/else, all else uses switch (can't make a multi-case case) if (command.indexOf('anime') != -1) { + console.log("Anime"); bot.commands.get('ANIME').execute(command, message, args, bot); - } else if (command.indexOf('MANGA')) { + } else if (command.indexOf('MANGA') != -1) { + console.log("Manga"); //Do nothing for now } else { switch(command) {