hack: force load QuizBackend

master
BodgeMaster 2022-02-21 12:48:26 +01:00
parent 9f4421f448
commit a97424041c
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ public class Main {
// 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();
//TODO: remove, this is just a way to force loading of the QuizBackend class while it isnt being loaded automatically
QuizBackend backend = new QuizBackend();
DiscordApi api = new DiscordApiBuilder().setToken(commandLineArguments[0]).login().join(); DiscordApi api = new DiscordApiBuilder().setToken(commandLineArguments[0]).login().join();