Skip to content

Commit 13e01a2

Browse files
authored
Fix new line for /compare command
1 parent 56e681d commit 13e01a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/annimon/similarimagesbot/BotHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ private void sendReport(List<SimilarImagesInfo> infos) {
147147
// /compare command
148148
text += info.getResults().stream()
149149
.map(ImageResult::getPost)
150-
.map(p -> String.format("/compare%sm%dx%d",
150+
.map(p -> String.format("%n/compare%sm%dx%d",
151151
channelId, post.getMessageId(), p.getMessageId()))
152-
.collect(Collectors.joining("\n"));
152+
.collect(Collectors.joining());
153153
// /del command
154154
text += String.format("%n/del%sm%d", channelId, post.getMessageId());
155155
return text;

0 commit comments

Comments
 (0)