Skip to content

Commit 91d4593

Browse files
committed
show player name in search command output
1 parent 9e2c51f commit 91d4593

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
@@ -88,7 +88,7 @@ public Mono<Message> resolve(DeferrableInteractionEvent event, String word, int
8888
final StringBuilder result = new StringBuilder();
8989
final AtomicBoolean truncated = new AtomicBoolean(false);
9090
response.getChats().stream()
91-
.map(c -> SHORT_DATE_TIME.format(c.getTime().toInstant()) + " " + escape(c.getChat()))
91+
.map(c -> SHORT_DATE_TIME.format(c.getTime().toInstant()) + " **" + escape(c.getPlayerName()) + "**: " + escape(c.getChat()))
9292
.forEachOrdered(s -> {
9393
if (result.length() + s.length() + 1 > 4090) {
9494
truncated.set(true);

0 commit comments

Comments
 (0)