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