From 98470d4b1af85eb41691266d295c47544f489e2c Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 10 Jan 2023 08:51:00 -0500 Subject: [PATCH] Added help for #dev subcommands --- src/discord/MagicBot.java | 2 +- src/discord/handlers/DevRequestHandler.java | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/discord/MagicBot.java b/src/discord/MagicBot.java index 6a94647c..8be071ee 100644 --- a/src/discord/MagicBot.java +++ b/src/discord/MagicBot.java @@ -306,7 +306,7 @@ public class MagicBot extends ListenerAdapter { "#server reboot/shutdown are your options.\n" + "#logs magicbot/world/login n (tail)\n" + "#flash Send flash message\n" + - "#dev build /restart/debug/shutdown\n" + + "#dev help (list dev subcommands)\n" + "#trash /detail/flush"; sendResponse(event, helpString); } diff --git a/src/discord/handlers/DevRequestHandler.java b/src/discord/handlers/DevRequestHandler.java index b0d3f0ad..a9b741d1 100644 --- a/src/discord/handlers/DevRequestHandler.java +++ b/src/discord/handlers/DevRequestHandler.java @@ -60,6 +60,16 @@ public class DevRequestHandler { return; case "console": commandString = "./mbdevconsole.sh"; + break; + case "help": + MagicBot.sendResponse(event, + "#dev build (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; }