diff --git a/src/main/java/xyz/vallat/louis/commands/ListLangMovieTitle.java b/src/main/java/xyz/vallat/louis/commands/ListLangMovie.java similarity index 88% rename from src/main/java/xyz/vallat/louis/commands/ListLangMovieTitle.java rename to src/main/java/xyz/vallat/louis/commands/ListLangMovie.java index 5d9e578..e6db62d 100644 --- a/src/main/java/xyz/vallat/louis/commands/ListLangMovieTitle.java +++ b/src/main/java/xyz/vallat/louis/commands/ListLangMovie.java @@ -14,11 +14,14 @@ public class ListLangMovieTitle extends Command { private static final ReactionEmoji WAITING = ReactionEmoji.unicode("⌛"); public ListLangMovieTitle(String name) { - super(name, "List all languages attached to a film title.", name + " title", 1, 2); + super(name, "List all languages attached to a film title or an IMDB Identifier.", + name + " imdb|title value", 3, 3); } @Override public Mono execute(MessageCreateEvent event) { + if (event.getMessage().getContent().split(" ").length < minArgs) return notEnoughArguments(event); + boolean isId = event.getMessage().getContent().split(" ") String arg = event.getMessage().getContent().substring(name.length() + 1); if (arg.isBlank()) return notEnoughArguments(event); logger.debug("Executing command with argument '{}'.", arg);