diff options
author | David Cole <40234707+DavidArthurCole@users.noreply.github.com> | 2024-09-23 00:17:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 06:17:59 +0200 |
commit | 4b34113c86f824000bbe9eebb5cc3fcdfe56b9ba (patch) | |
tree | ea34fa1b5142be5427ac55b2aa92bfc8b5b2b2aa /src | |
parent | e60a7adf98a37ba13ce1caf372f3a6f9895c5da6 (diff) | |
download | skyhanni-4b34113c86f824000bbe9eebb5cc3fcdfe56b9ba.tar.gz skyhanni-4b34113c86f824000bbe9eebb5cc3fcdfe56b9ba.tar.bz2 skyhanni-4b34113c86f824000bbe9eebb5cc3fcdfe56b9ba.zip |
Backend: Add Helper Text to `/shtestmessage` (#2568)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/command/TestChatCommand.kt | 9 |
1 files changed, 8 insertions, 1 deletions
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<String>) { 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 } |