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:
parent
4e9f6bd2fe
commit
5de09dfc5a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user