From 817e0449e4ce4e921ee30a506795b31f5c203819 Mon Sep 17 00:00:00 2001 From: Andrew1031 <46513900+Andrew1031@users.noreply.github.com> Date: Fri, 27 Sep 2024 05:04:10 -0700 Subject: [PATCH] Remove backsticks in /jshell version (#1164) Co-authored-by: Andrew1031 --- .../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); }