diff --git a/src/discord/MagicBot.java b/src/discord/MagicBot.java index bb1351a6..6a94647c 100644 --- a/src/discord/MagicBot.java +++ b/src/discord/MagicBot.java @@ -217,6 +217,9 @@ public class MagicBot extends ListenerAdapter { case "#server": ServerRequestHandler.handleRequest(event, args); break; + case "#dev": + DevRequestHandler.handleRequest(event, args); + break; case "#logs": LogsRequestHandler.handleRequest(event, args); break; @@ -226,9 +229,6 @@ public class MagicBot extends ListenerAdapter { case "#trash": TrashRequestHandler.handleRequest(event, args); break; - case "#devbuild": - DevRequestHandler.handleRequest(event, args); - break; default: junkbot(command, args); break; diff --git a/src/discord/handlers/DevRequestHandler.java b/src/discord/handlers/DevRequestHandler.java index 4a856db9..e4240e44 100644 --- a/src/discord/handlers/DevRequestHandler.java +++ b/src/discord/handlers/DevRequestHandler.java @@ -37,12 +37,6 @@ public class DevRequestHandler { if (args.length == 2) buildTarget = args[1].toLowerCase().trim(); - - // only reboot or shutdown - - if ("rebootshutdown".contains(serverCommand) == false) - return; - switch (serverCommand) { case "build" : @@ -67,7 +61,7 @@ public class DevRequestHandler { } catch (IOException e) { e.printStackTrace(); } - MagicBot.sendResponse(event, "MagicBot has executed your " + serverCommand); + MagicBot.sendResponse(event, "Executed on dev: " + serverCommand + " " + buildTarget); Logger.info(event.getAuthor().getName() + " told dev to " + serverCommand + " " + buildTarget); } }