From bab008dd40382d386366bdcffdc3f18ed0c75936 Mon Sep 17 00:00:00 2001 From: Andrew1031 Date: Sun, 15 Sep 2024 13:28:25 -0700 Subject: [PATCH] Remove backsticks --- .../org/togetherjava/tjbot/features/jshell/JShellCommand.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/src/main/java/org/togetherjava/tjbot/features/jshell/JShellCommand.java b/application/src/main/java/org/togetherjava/tjbot/features/jshell/JShellCommand.java index 629ff3acd9..f5ebe81f3f 100644 --- a/application/src/main/java/org/togetherjava/tjbot/features/jshell/JShellCommand.java +++ b/application/src/main/java/org/togetherjava/tjbot/features/jshell/JShellCommand.java @@ -111,12 +111,11 @@ public void onModalSubmitted(ModalInteractionEvent event, List args) { private void handleVersionCommand(SlashCommandInteractionEvent event) { String code = """ - System.out.println("```"); System.out.println("Version: " + Runtime.version()); System.out.println("Vendor: " + System.getProperty("java.vendor")); System.out.println("OS: " + System.getProperty("os.name")); System.out.println("Arch: " + System.getProperty("os.arch")); - System.out.println("```");"""; + """; handleEval(event, null, false, code, false); }