Skip to content

Commit

Permalink
Remove backsticks in /jshell version (Together-Java#1164)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew1031 <andrewyee67@gmail.com>
  • Loading branch information
andrew-09 and Andrew1031 authored Sep 27, 2024
1 parent 4173da4 commit 817e044
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,11 @@ public void onModalSubmitted(ModalInteractionEvent event, List<String> 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);
}

Expand Down

0 comments on commit 817e044

Please sign in to comment.