Accidentally made it impossible to execute commands (forgot a != sign)

This commit is contained in:
ION606
2022-05-13 12:25:15 +03:00
parent 8019c57ead
commit 19b51ecfb3
+3 -1
View File
@@ -117,8 +117,10 @@ bot.on('messageCreate', (message) => {
//Performes the command //Performes the command
//Anime uses if/else, all else uses switch (can't make a multi-case case) //Anime uses if/else, all else uses switch (can't make a multi-case case)
if (command.indexOf('anime') != -1) { if (command.indexOf('anime') != -1) {
console.log("Anime");
bot.commands.get('ANIME').execute(command, message, args, bot); 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 //Do nothing for now
} else { } else {
switch(command) { switch(command) {