From 9a389f5dd38c4a5641daf8204e149f57a0cb9e24 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Wed, 4 Nov 2020 11:09:32 +0100 Subject: [PATCH] Renamed listLangMovie to just listLang Signed-off-by: Louis Vallat --- src/main/java/xyz/vallat/louis/commands/Command.java | 2 +- .../louis/commands/{ListLangMovie.java => ListLang.java} | 6 +++--- src/main/java/xyz/vallat/louis/discord/DiscordManager.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/main/java/xyz/vallat/louis/commands/{ListLangMovie.java => ListLang.java} (95%) diff --git a/src/main/java/xyz/vallat/louis/commands/Command.java b/src/main/java/xyz/vallat/louis/commands/Command.java index f99088d..f1c8a6c 100644 --- a/src/main/java/xyz/vallat/louis/commands/Command.java +++ b/src/main/java/xyz/vallat/louis/commands/Command.java @@ -24,7 +24,7 @@ import java.util.stream.Stream; public abstract class Command { protected static final ReactionEmoji WAITING = ReactionEmoji.unicode("⌛"); - private static final Logger logger = LoggerFactory.getLogger(ListLangMovie.class.getCanonicalName()); + private static final Logger logger = LoggerFactory.getLogger(ListLang.class.getCanonicalName()); protected final String name; protected final String description; protected final String usage; diff --git a/src/main/java/xyz/vallat/louis/commands/ListLangMovie.java b/src/main/java/xyz/vallat/louis/commands/ListLang.java similarity index 95% rename from src/main/java/xyz/vallat/louis/commands/ListLangMovie.java rename to src/main/java/xyz/vallat/louis/commands/ListLang.java index 1d96077..e97ed21 100644 --- a/src/main/java/xyz/vallat/louis/commands/ListLangMovie.java +++ b/src/main/java/xyz/vallat/louis/commands/ListLang.java @@ -11,11 +11,11 @@ import xyz.vallat.louis.subtitles.exceptions.UnauthorizedException; import java.time.Instant; import java.util.List; -public class ListLangMovie extends Command { +public class ListLang extends Command { - private static final Logger logger = LoggerFactory.getLogger(ListLangMovie.class.getCanonicalName()); + private static final Logger logger = LoggerFactory.getLogger(ListLang.class.getCanonicalName()); - public ListLangMovie(String name) { + public ListLang(String name) { super(name, "List all languages attached to a movie title or an IMDB Identifier.", name + " imdb|title value", 2, 2); } diff --git a/src/main/java/xyz/vallat/louis/discord/DiscordManager.java b/src/main/java/xyz/vallat/louis/discord/DiscordManager.java index d7c8bcc..908bd71 100644 --- a/src/main/java/xyz/vallat/louis/discord/DiscordManager.java +++ b/src/main/java/xyz/vallat/louis/discord/DiscordManager.java @@ -24,7 +24,7 @@ public final class DiscordManager { private static GatewayDiscordClient discordClient; static { - commands.add(new ListLangMovie(PREFIX + "listLangMovie")); + commands.add(new ListLang(PREFIX + "listLangMovie")); commands.add(new Download(PREFIX + "download")); commands.add(new Quote(PREFIX + "quote")); commands.add(new Ping(PREFIX + "ping"));