diff --git a/src/main/java/xyz/vallat/louis/MovieQuoteBot.java b/src/main/java/xyz/vallat/louis/MovieQuoteBot.java index 875c778..a9010e5 100644 --- a/src/main/java/xyz/vallat/louis/MovieQuoteBot.java +++ b/src/main/java/xyz/vallat/louis/MovieQuoteBot.java @@ -12,14 +12,9 @@ import org.slf4j.LoggerFactory; import reactor.core.publisher.Mono; import xyz.vallat.louis.commands.*; import xyz.vallat.louis.database.DBManager; -import xyz.vallat.louis.database.FilmManager; -import xyz.vallat.louis.database.exceptions.ImportationException; import xyz.vallat.louis.env.EnvironmentVariables; -import xyz.vallat.louis.omdb.OMDBClient; import xyz.vallat.louis.subtitles.OpenSubtitles; -import java.io.IOException; -import java.text.ParseException; import java.util.HashMap; import java.util.Map; @@ -41,9 +36,7 @@ public class MovieQuoteBot { commands.put("download", new Download(PREFIX + "download")); } - public static void main(String[] args) throws InterruptedException, ParseException, IOException, ImportationException { - FilmManager.importFilm(OMDBClient.getMovie("Surrogates", false)); - /* + public static void main(String[] args) { DBManager.testConnection(); DBManager.initDatabase(); OpenSubtitles.login(); @@ -57,8 +50,6 @@ public class MovieQuoteBot { })); discordClient.onDisconnect().block(); - - */ } private static void registerDiscordCommands() { diff --git a/src/main/java/xyz/vallat/louis/database/FilmManager.java b/src/main/java/xyz/vallat/louis/database/FilmManager.java index 7f5ed03..d1adb5f 100644 --- a/src/main/java/xyz/vallat/louis/database/FilmManager.java +++ b/src/main/java/xyz/vallat/louis/database/FilmManager.java @@ -13,6 +13,9 @@ public final class FilmManager { private static final Logger logger = LoggerFactory.getLogger(FilmManager.class.getCanonicalName()); + private FilmManager() { + } + static void initializeFilm(Connection connection) throws SQLException { logger.debug("Creating film table."); try (Statement stmt = connection.createStatement()) {