File tree Expand file tree Collapse file tree
src/main/java/net/javadiscord/javabot/systems/staff_commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public RedeployCommand() {
3030 .setDefaultPermissions (DefaultMemberPermissions .DISABLED )
3131 .setGuildOnly (true )
3232 );
33- requireUsers (Bot .config .getSystems ().getAdminConfig ().getAdminUsers ());
33+ requireUsers (Bot .getConfig () .getSystems ().getAdminConfig ().getAdminUsers ());
3434 }
3535
3636 @ Override
@@ -42,7 +42,7 @@ public void execute(@NotNull SlashCommandInteractionEvent event) {
4242 log .warn ("Redeploying... Requested by: " + event .getUser ().getAsTag ());
4343 event .reply ("Redeploying, this may take a few minutes." ).queue ();
4444 try {
45- Process p = new ProcessBuilder ("/bin/sh" , Bot .config .getSystems ().getRedeployScriptLocation ()).start ();
45+ Process p = new ProcessBuilder ("/bin/sh" , Bot .getConfig () .getSystems ().getRedeployScriptLocation ()).start ();
4646 p .waitFor ();
4747 String result = new String (p .getInputStream ().readAllBytes ());
4848 if (result .contains ("COMPILATION FAILED" )) {
@@ -55,7 +55,7 @@ public void execute(@NotNull SlashCommandInteractionEvent event) {
5555 } catch (Exception e ) {
5656 ExceptionLogger .capture (e , getClass ().getSimpleName ());
5757 }
58- Bot .messageCache .synchronize ();
58+ Bot .getMessageCache () .synchronize ();
5959 System .exit (0 );
6060 }
6161}
You can’t perform that action at this time.
0 commit comments