Some better stuff

This commit is contained in:
GregTCLTK 2020-02-07 12:31:27 +01:00
parent f1894436d7
commit 1f3a9023d4
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67
2 changed files with 2 additions and 3 deletions

View file

@ -76,8 +76,7 @@ public class CommandHandler {
}
}
}
if (run)
cmd.executed(args, commandEvent);
if (run) cmd.executed(args, commandEvent);
else event.getMessage().addReaction("").queue();
return;
}

View file

@ -133,6 +133,6 @@ public class MessageEditor {
ResourceBundle resourceBundle = ResourceBundle.getBundle("Translations/Translations", locale);
if (resourceBundle.containsKey(string))
return resourceBundle.getString(string).replaceAll("%extra%", extra).replaceAll("%extra_two%", extra_two);
else return "This key doesn't exist. Please report this to the Bot Developers. Key: " + string + " Language_code: " + language_code;
else return "This key doesn't exist. Please report this to the Bot Developers. Key: `" + string + "` Language_code: `" + language_code + "`";
}
}