Renamed project to MoviesQuoteBot
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
76e9aa3a36
commit
3864269786
@ -8,7 +8,7 @@ version ''
|
||||
|
||||
apply plugin : 'java'
|
||||
ext {
|
||||
javaMainClass = 'xyz.vallat.louis.MovieQuoteBot'
|
||||
javaMainClass = 'xyz.vallat.louis.MoviesQuoteBot'
|
||||
}
|
||||
|
||||
application {
|
||||
|
@ -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();
|
@ -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);
|
||||
}
|
||||
)
|
||||
)
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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<Command> commands = new ArrayList<>();
|
||||
|
Loading…
Reference in New Issue
Block a user