mirror of
https://github.com/ION606/selmerBot.git
synced 2026-05-15 05:36:54 +00:00
Accidentally made it impossible to execute commands (forgot a != sign)
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user