Fix new line for /compare command

This commit is contained in:
Victor Melnik 2020-10-07 18:46:13 +00:00 committed by GitHub
parent 56e681d141
commit 13e01a20b0

View File

@ -147,9 +147,9 @@ public class BotHandler extends BaseBotHandler {
// /compare command // /compare command
text += info.getResults().stream() text += info.getResults().stream()
.map(ImageResult::getPost) .map(ImageResult::getPost)
.map(p -> String.format("/compare%sm%dx%d", .map(p -> String.format("%n/compare%sm%dx%d",
channelId, post.getMessageId(), p.getMessageId())) channelId, post.getMessageId(), p.getMessageId()))
.collect(Collectors.joining("\n")); .collect(Collectors.joining());
// /del command // /del command
text += String.format("%n/del%sm%d", channelId, post.getMessageId()); text += String.format("%n/del%sm%d", channelId, post.getMessageId());
return text; return text;