From 4b34113c86f824000bbe9eebb5cc3fcdfe56b9ba Mon Sep 17 00:00:00 2001 From: David Cole <40234707+DavidArthurCole@users.noreply.github.com> Date: Mon, 23 Sep 2024 00:17:59 -0400 Subject: Backend: Add Helper Text to `/shtestmessage` (#2568) --- .../java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt index e9d8d6145..fbb28b272 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt @@ -12,7 +12,14 @@ object TestChatCommand { fun command(args: Array) { if (args.isEmpty()) { - ChatUtils.userError("Specify a chat message to test!") + val syntaxStrings = listOf( + "§7Syntax: §e/shtestmessage §7<§e-chat message§7> §7[-lines] [-complex] [-clipboard] [-s]", + " §7[-lines]§e: §7Split the message into multiple by newlines", + " §7[-complex]§e: §7Parse the message as a JSON chat component", + " §7[-clipboard]§e: §7Read the message from the clipboard", + " §7[-s]§e: §7Hide the output message", + ) + ChatUtils.userError("Specify a chat message to test!\n${syntaxStrings.joinToString("\n")}") return } -- cgit