Skip to content

Commit d0ff589

Browse files
committed
print player name in search output
1 parent 0fdbf8a commit d0ff589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/vc/commands/ChatSearchCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public Mono<Message> handle(final ChatInputInteractionEvent event) {
5959
return error(event, "Error during search");
6060
}
6161
var chatStrings = response.getChats().stream()
62-
.map(c -> SHORT_DATE_TIME.format(c.getTime().toInstant()) + " " + escape(c.getChat()))
62+
.map(c -> SHORT_DATE_TIME.format(c.getTime().toInstant()) + " **" + escape(c.getPlayerName()) + ":** " + escape(c.getChat()))
6363
.toList();
6464
StringBuilder result = new StringBuilder();
6565
for (String s : chatStrings) {

0 commit comments

Comments
 (0)