Browse Source

Added help for #dev subcommands

master
MagicBot 2 years ago
parent
commit
98470d4b1a
  1. 2
      src/discord/MagicBot.java
  2. 10
      src/discord/handlers/DevRequestHandler.java

2
src/discord/MagicBot.java

@ -306,7 +306,7 @@ public class MagicBot extends ListenerAdapter { @@ -306,7 +306,7 @@ public class MagicBot extends ListenerAdapter {
"#server reboot/shutdown are your options.\n" +
"#logs magicbot/world/login n (tail)\n" +
"#flash <text> Send flash message\n" +
"#dev build <target>/restart/debug/shutdown\n" +
"#dev help (list dev subcommands)\n" +
"#trash <blank>/detail/flush";
sendResponse(event, helpString);
}

10
src/discord/handlers/DevRequestHandler.java

@ -60,6 +60,16 @@ public class DevRequestHandler { @@ -60,6 +60,16 @@ public class DevRequestHandler {
return;
case "console":
commandString = "./mbdevconsole.sh";
break;
case "help":
MagicBot.sendResponse(event,
"#dev build <target> (blank==master) \n" +
"#dev shutdown (Shutdown dev server)\n" +
"#dev restart (Restarts the server)\n"+
"#dev debug (Restarts server in debug mode)\n" +
"#dev console # (Displays # lines from console)\n" +
"#dev lastout (Displays output from last command) \n");
return;
default:
break;
}

Loading…
Cancel
Save