diff --git a/src/main/java/linux/general/hackyquizbot/Main.java b/src/main/java/linux/general/hackyquizbot/Main.java index 55c03ed..b49a803 100644 --- a/src/main/java/linux/general/hackyquizbot/Main.java +++ b/src/main/java/linux/general/hackyquizbot/Main.java @@ -16,11 +16,6 @@ public class Main { // [0] token, [1] db username, [2] db password commandLineArguments = args; - // CREATE TABLE questions(id INT(32) AUTO_INCREMENT PRIMARY KEY, question TEXT, max_score INT(8)); - // CREATE TABLE answer_coices(id INT(32), answer VARCHAR(2048), correctness BOOLEAN); - // CREATE TABLE user_answers(id INT(32), given_answer VARCHAR(2048), discord_user VARCHAR(1024)); - // CREATE TABLE categories(id INT(32), category VARCHAR(1024)); - // checks every 7500 ms if a deployment happened, if so shuts down the bot CheckDeploy check = new CheckDeploy(7500, "/var/www/deployment/Hacky-Quizbot/id.txt"); check.start(); diff --git a/src/main/java/linux/general/hackyquizbot/QuizBackend.java b/src/main/java/linux/general/hackyquizbot/QuizBackend.java index 8b749e7..5feb500 100644 --- a/src/main/java/linux/general/hackyquizbot/QuizBackend.java +++ b/src/main/java/linux/general/hackyquizbot/QuizBackend.java @@ -11,6 +11,11 @@ public class QuizBackend { private static final String dbPassword = Main.getCommandLineArgument(2); private static final String dbName = "jdbc:mysql://localhost:3306/quizbot"; //we can make this configurable later + // CREATE TABLE questions(id INT(32) AUTO_INCREMENT PRIMARY KEY, question TEXT, max_score INT(8)); + // CREATE TABLE answer_coices(id INT(32), answer VARCHAR(2048), correctness BOOLEAN); + // CREATE TABLE user_answers(id INT(32), given_answer VARCHAR(2048), discord_user VARCHAR(1024)); + // CREATE TABLE categories(id INT(32), category VARCHAR(1024)); + private static Question[] allQuestions; private static String[] categories;