move comments containing db structure to a more appropriate place

master
BodgeMaster 2022-02-21 12:46:16 +01:00
parent aa0bcd3e99
commit 9f4421f448
2 changed files with 5 additions and 5 deletions

View File

@ -16,11 +16,6 @@ public class Main {
// [0] token, [1] db username, [2] db password // [0] token, [1] db username, [2] db password
commandLineArguments = args; 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 // 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"); CheckDeploy check = new CheckDeploy(7500, "/var/www/deployment/Hacky-Quizbot/id.txt");
check.start(); check.start();

View File

@ -11,6 +11,11 @@ public class QuizBackend {
private static final String dbPassword = Main.getCommandLineArgument(2); private static final String dbPassword = Main.getCommandLineArgument(2);
private static final String dbName = "jdbc:mysql://localhost:3306/quizbot"; //we can make this configurable later 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 Question[] allQuestions;
private static String[] categories; private static String[] categories;