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); }