1
0
mirror of https://github.com/demodude4u/Factorio-FBSR.git synced 2024-11-27 08:20:57 +02:00

Improved blueprintItems command with wiki naming

This commit is contained in:
Weston Rye (Demod) 2017-07-25 16:51:42 -04:00
parent 4e9f6bd2fe
commit 5de09dfc5a

View File

@ -385,7 +385,7 @@ public class BlueprintBotDiscordService extends AbstractIdleService {
try {
String responseContent = totalItems.entrySet().stream()
.sorted((e1, e2) -> e1.getKey().compareTo(e2.getKey()))
.map(e -> e.getKey() + ": " + RenderUtils.fmtDouble(e.getValue()))
.map(e -> table.getWikiItemName(e.getKey()) + ": " + RenderUtils.fmtDouble(e.getValue()))
.collect(Collectors.joining("\n"));
String responseContentUrl = WebUtils.uploadToHostingService("items.txt", responseContent.getBytes())
.toString();