Renamed project to MoviesQuoteBot

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2020-10-29 17:03:50 +01:00
parent 76e9aa3a36
commit 3864269786
5 changed files with 10 additions and 10 deletions

View File

@ -8,7 +8,7 @@ version ''
apply plugin : 'java' apply plugin : 'java'
ext { ext {
javaMainClass = 'xyz.vallat.louis.MovieQuoteBot' javaMainClass = 'xyz.vallat.louis.MoviesQuoteBot'
} }
application { application {

View File

@ -6,13 +6,13 @@ import xyz.vallat.louis.database.DBManager;
import xyz.vallat.louis.discord.DiscordManager; import xyz.vallat.louis.discord.DiscordManager;
import xyz.vallat.louis.subtitles.OpenSubtitles; import xyz.vallat.louis.subtitles.OpenSubtitles;
public class MovieQuoteBot { public class MoviesQuoteBot {
public static final String PREFIX = "!"; public static final String PREFIX = "!";
public static final String NAME = "Movies Quote Bot"; 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 DESCRIPTION = "I may know some quotes from some movies.";
public static final String VERSION = "0.1-SNAPSHOT"; 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) { public static void main(String[] args) {
DBManager.testConnection(); DBManager.testConnection();

View File

@ -4,7 +4,7 @@ import discord4j.core.event.domain.message.MessageCreateEvent;
import discord4j.core.object.entity.Guild; import discord4j.core.object.entity.Guild;
import discord4j.rest.util.Color; import discord4j.rest.util.Color;
import reactor.core.publisher.Mono; 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.SubtitleLineManager;
import xyz.vallat.louis.database.SubtitleManager; import xyz.vallat.louis.database.SubtitleManager;
import xyz.vallat.louis.discord.DiscordManager; import xyz.vallat.louis.discord.DiscordManager;
@ -22,8 +22,8 @@ public class Version extends Command {
.createEmbed(embedCreateSpec -> { .createEmbed(embedCreateSpec -> {
embedCreateSpec embedCreateSpec
.setColor(Color.BISMARK) .setColor(Color.BISMARK)
.setTitle(MovieQuoteBot.NAME) .setTitle(MoviesQuoteBot.NAME)
.setDescription(MovieQuoteBot.DESCRIPTION) .setDescription(MoviesQuoteBot.DESCRIPTION)
.addField("Guilds", String.valueOf(DiscordManager.getGuilds().block()), true) .addField("Guilds", String.valueOf(DiscordManager.getGuilds().block()), true)
.addField("Subtitles imported", String.valueOf(SubtitleManager.getNumberOfSubtitles()), true) .addField("Subtitles imported", String.valueOf(SubtitleManager.getNumberOfSubtitles()), true)
.addField("Lines imported", String.valueOf(SubtitleLineManager.getNumberOfSubtitleLines()), true); .addField("Lines imported", String.valueOf(SubtitleLineManager.getNumberOfSubtitleLines()), true);
@ -38,7 +38,7 @@ public class Version extends Command {
.getNumberOfSubtitlesByGuild(guild.getId().asString()) + " subtitles.", .getNumberOfSubtitlesByGuild(guild.getId().asString()) + " subtitles.",
true); true);
} }
embedCreateSpec.addField("Version", MovieQuoteBot.VERSION, true); embedCreateSpec.addField("Version", MoviesQuoteBot.VERSION, true);
} }
) )
) )

View File

@ -2,7 +2,7 @@ package xyz.vallat.louis.database;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import xyz.vallat.louis.MovieQuoteBot; import xyz.vallat.louis.MoviesQuoteBot;
import xyz.vallat.louis.codes.ExitCodes; import xyz.vallat.louis.codes.ExitCodes;
import xyz.vallat.louis.env.EnvironmentVariables; import xyz.vallat.louis.env.EnvironmentVariables;
@ -66,6 +66,6 @@ public final class DBManager {
} }
private static void updateDatabaseIfNeeded() { private static void updateDatabaseIfNeeded() {
PropertyManager.saveProperty(VERSION_PROPERTY, MovieQuoteBot.VERSION); PropertyManager.saveProperty(VERSION_PROPERTY, MoviesQuoteBot.VERSION);
} }
} }

View File

@ -16,7 +16,7 @@ import xyz.vallat.louis.env.EnvironmentVariables;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import static xyz.vallat.louis.MovieQuoteBot.PREFIX; import static xyz.vallat.louis.MoviesQuoteBot.PREFIX;
public final class DiscordManager { public final class DiscordManager {
private static final List<Command> commands = new ArrayList<>(); private static final List<Command> commands = new ArrayList<>();