Fixed compiler error
This commit is contained in:
1 parent
29a9d1bc46
commit
3f9164d3a6
1 file changed
+12
-12
@@ -38,32 +38,32 @@ public class MusicBot {
|
|||||||
jda.getPresence().setGame(Game.watching("me load..."));
|
jda.getPresence().setGame(Game.watching("me load..."));
|
||||||
jda.addEventListener(new NewCommandListener(), new EditHandler());
|
jda.addEventListener(new NewCommandListener(), new EditHandler());
|
||||||
|
|
||||||
Settings.setCreator(jda.getUserById("194270171727265792"));
|
// WebApi webserver = new WebApi();
|
||||||
Settings.setOwnerGuild(jda.getGuildById("195386426400047105"));
|
|
||||||
|
|
||||||
WebApi webserver = new WebApi();
|
|
||||||
|
|
||||||
jda.getPresence().setGame(Game.watching("rape"));
|
jda.getPresence().setGame(Game.watching("rape"));
|
||||||
Thread status = new Thread(new StatusThread(jda.getPresence()));
|
|
||||||
// status.start();
|
|
||||||
|
|
||||||
ConsoleHandler consoleInput = new ConsoleHandler();
|
ConsoleHandler consoleInput = new ConsoleHandler();
|
||||||
|
|
||||||
switch (consoleInput.init()) {
|
switch (consoleInput.init()) {
|
||||||
|
|
||||||
case "quit":
|
case "quit":
|
||||||
System.out.println("Shutting down...");
|
shutdown();
|
||||||
MusicManager.disconnectPlayers();
|
|
||||||
jda.shutdown();
|
|
||||||
DBController.shutdown();
|
|
||||||
ThreadManager.shutdownExecutor();
|
|
||||||
System.out.println("Shutdown complete");
|
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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() {
|
public static JDA getJDA() {
|
||||||
return jda;
|
return jda;
|
||||||
|
|||||||
Reference in new issue
Block a user