Fixed compiler error

This commit is contained in:
Anthony Robert committed 2018-09-25 20:49:40 -04:00
1 parent 29a9d1bc46
commit 3f9164d3a6
1 file changed
+12 -12
+12 -12
View File
@@ -38,26 +38,17 @@ public class MusicBot {
jda.getPresence().setGame(Game.watching("me load..."));
jda.addEventListener(new NewCommandListener(), new EditHandler());
Settings.setCreator(jda.getUserById("194270171727265792"));
Settings.setOwnerGuild(jda.getGuildById("195386426400047105"));
WebApi webserver = new WebApi();
// WebApi webserver = new WebApi();
jda.getPresence().setGame(Game.watching("rape"));
Thread status = new Thread(new StatusThread(jda.getPresence()));
// status.start();
ConsoleHandler consoleInput = new ConsoleHandler();
switch (consoleInput.init()) {
case "quit":
System.out.println("Shutting down...");
MusicManager.disconnectPlayers();
jda.shutdown();
DBController.shutdown();
ThreadManager.shutdownExecutor();
System.out.println("Shutdown complete");
shutdown();
System.exit(0);
break;
@@ -65,6 +56,15 @@ public class MusicBot {
}
public static void shutdown() {
System.out.println("Shutting down...");
MusicManager.disconnectPlayers();
disconnect();
DBController.shutdown();
ThreadManager.shutdownExecutor();
System.out.println("Shutdown complete");
}
public static JDA getJDA() {
return jda;
}