= Updated formatting

This commit is contained in:
Matthew Cech
2019-04-12 22:59:16 -07:00
parent afc5176f43
commit 8f29e64f83
+6 -7
View File
@@ -1,7 +1,6 @@
package main;
import javax.security.auth.login.LoginException;
import core.*;
import dataStructures.KittyChannel;
import dataStructures.KittyGuild;
@@ -18,8 +17,10 @@ import core.Localizer;
import utils.GlobalLog;
import net.dv8tion.jda.core.*;
// NOTE(wisp): http://www.slf4j.org/ - this JDA logging tool has been disabled by specifying NOP implementation.
// NOTE(wisp): Application entry point!
// http://www.slf4j.org/ - this JDA logging tool has been disabled by specifying NOP implementation.
// This is the application entry point, and bot startup location!
@SuppressWarnings("unused")
public class Main extends ListenerAdapter
{
// Variables and stuff
@@ -37,13 +38,12 @@ public class Main extends ListenerAdapter
Localizer.ScrapeAll();
Localizer.SaveLocToDisk();
// Facotry startup.
// Factory startup
databaseManager = ObjectBuilderFactory.ConstructDatabaseManager();
commandManager = ObjectBuilderFactory.ConstructCommandManager();
rpManager = ObjectBuilderFactory.ConstructRPManager();
stats = ObjectBuilderFactory.ConstructStats(commandManager);
// Bot startup
kitty = new JDABuilder(AccountType.BOT).setToken(Ref.TestToken).buildBlocking();
kitty.getPresence().setGame(Game.playing("with a new build"));
@@ -57,8 +57,6 @@ public class Main extends ListenerAdapter
if(!PreProcessSetup(event))
return;
GlobalLog.Log("Parseable message recieved!");
// Factory objects
KittyUser user = ObjectBuilderFactory.ExtractUser(event);
KittyGuild guild = ObjectBuilderFactory.ExtractGuild(event);
@@ -141,6 +139,7 @@ public class Main extends ListenerAdapter
{
databaseManager.Upkeep();
RPManager.Upkeep(kitty);
return true;
}
}