From 38642697866ee7339f71ba0d9c0e260d8e8ddc40 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Thu, 29 Oct 2020 17:03:50 +0100 Subject: [PATCH] Renamed project to MoviesQuoteBot Signed-off-by: Louis Vallat --- build.gradle | 2 +- .../louis/{MovieQuoteBot.java => MoviesQuoteBot.java} | 4 ++-- src/main/java/xyz/vallat/louis/commands/Version.java | 8 ++++---- src/main/java/xyz/vallat/louis/database/DBManager.java | 4 ++-- .../java/xyz/vallat/louis/discord/DiscordManager.java | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) rename src/main/java/xyz/vallat/louis/{MovieQuoteBot.java => MoviesQuoteBot.java} (93%) diff --git a/build.gradle b/build.gradle index 2f5b096..5900ec5 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ version '' apply plugin : 'java' ext { - javaMainClass = 'xyz.vallat.louis.MovieQuoteBot' + javaMainClass = 'xyz.vallat.louis.MoviesQuoteBot' } application { diff --git a/src/main/java/xyz/vallat/louis/MovieQuoteBot.java b/src/main/java/xyz/vallat/louis/MoviesQuoteBot.java similarity index 93% rename from src/main/java/xyz/vallat/louis/MovieQuoteBot.java rename to src/main/java/xyz/vallat/louis/MoviesQuoteBot.java index 7773ef0..28bc404 100644 --- a/src/main/java/xyz/vallat/louis/MovieQuoteBot.java +++ b/src/main/java/xyz/vallat/louis/MoviesQuoteBot.java @@ -6,13 +6,13 @@ import xyz.vallat.louis.database.DBManager; import xyz.vallat.louis.discord.DiscordManager; import xyz.vallat.louis.subtitles.OpenSubtitles; -public class MovieQuoteBot { +public class MoviesQuoteBot { public static final String PREFIX = "!"; public static final String NAME = "Movies Quote Bot"; public static final String DESCRIPTION = "I may know some quotes from some movies."; public static final String VERSION = "0.1-SNAPSHOT"; - private static final Logger logger = LoggerFactory.getLogger(MovieQuoteBot.class.getCanonicalName()); + private static final Logger logger = LoggerFactory.getLogger(MoviesQuoteBot.class.getCanonicalName()); public static void main(String[] args) { DBManager.testConnection(); diff --git a/src/main/java/xyz/vallat/louis/commands/Version.java b/src/main/java/xyz/vallat/louis/commands/Version.java index 7c131cb..b71474e 100644 --- a/src/main/java/xyz/vallat/louis/commands/Version.java +++ b/src/main/java/xyz/vallat/louis/commands/Version.java @@ -4,7 +4,7 @@ import discord4j.core.event.domain.message.MessageCreateEvent; import discord4j.core.object.entity.Guild; import discord4j.rest.util.Color; import reactor.core.publisher.Mono; -import xyz.vallat.louis.MovieQuoteBot; +import xyz.vallat.louis.MoviesQuoteBot; import xyz.vallat.louis.database.SubtitleLineManager; import xyz.vallat.louis.database.SubtitleManager; import xyz.vallat.louis.discord.DiscordManager; @@ -22,8 +22,8 @@ public class Version extends Command { .createEmbed(embedCreateSpec -> { embedCreateSpec .setColor(Color.BISMARK) - .setTitle(MovieQuoteBot.NAME) - .setDescription(MovieQuoteBot.DESCRIPTION) + .setTitle(MoviesQuoteBot.NAME) + .setDescription(MoviesQuoteBot.DESCRIPTION) .addField("Guilds", String.valueOf(DiscordManager.getGuilds().block()), true) .addField("Subtitles imported", String.valueOf(SubtitleManager.getNumberOfSubtitles()), true) .addField("Lines imported", String.valueOf(SubtitleLineManager.getNumberOfSubtitleLines()), true); @@ -38,7 +38,7 @@ public class Version extends Command { .getNumberOfSubtitlesByGuild(guild.getId().asString()) + " subtitles.", true); } - embedCreateSpec.addField("Version", MovieQuoteBot.VERSION, true); + embedCreateSpec.addField("Version", MoviesQuoteBot.VERSION, true); } ) ) diff --git a/src/main/java/xyz/vallat/louis/database/DBManager.java b/src/main/java/xyz/vallat/louis/database/DBManager.java index ed4cd45..b969e7f 100644 --- a/src/main/java/xyz/vallat/louis/database/DBManager.java +++ b/src/main/java/xyz/vallat/louis/database/DBManager.java @@ -2,7 +2,7 @@ package xyz.vallat.louis.database; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import xyz.vallat.louis.MovieQuoteBot; +import xyz.vallat.louis.MoviesQuoteBot; import xyz.vallat.louis.codes.ExitCodes; import xyz.vallat.louis.env.EnvironmentVariables; @@ -66,6 +66,6 @@ public final class DBManager { } private static void updateDatabaseIfNeeded() { - PropertyManager.saveProperty(VERSION_PROPERTY, MovieQuoteBot.VERSION); + PropertyManager.saveProperty(VERSION_PROPERTY, MoviesQuoteBot.VERSION); } } diff --git a/src/main/java/xyz/vallat/louis/discord/DiscordManager.java b/src/main/java/xyz/vallat/louis/discord/DiscordManager.java index 06f21d0..d7c8bcc 100644 --- a/src/main/java/xyz/vallat/louis/discord/DiscordManager.java +++ b/src/main/java/xyz/vallat/louis/discord/DiscordManager.java @@ -16,7 +16,7 @@ import xyz.vallat.louis.env.EnvironmentVariables; import java.util.ArrayList; import java.util.List; -import static xyz.vallat.louis.MovieQuoteBot.PREFIX; +import static xyz.vallat.louis.MoviesQuoteBot.PREFIX; public final class DiscordManager { private static final List commands = new ArrayList<>();