From d2f05194147ab31db6a7b77482941845e6b54343 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Sat, 17 Aug 2024 21:57:03 +0800 Subject: [PATCH] Updated the formatting to make the juice stats command more legible --- KfChatDotNetBot/Commands/JuiceCommand.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/KfChatDotNetBot/Commands/JuiceCommand.cs b/KfChatDotNetBot/Commands/JuiceCommand.cs index b536018..43013d0 100644 --- a/KfChatDotNetBot/Commands/JuiceCommand.cs +++ b/KfChatDotNetBot/Commands/JuiceCommand.cs @@ -82,14 +82,14 @@ public class JuiceStatsCommand : ICommand var sum = await db.Juicers.SumAsync(s => s.Amount, cancellationToken: ctx); var count = await db.Juicers.CountAsync(ctx); var totalUsers = await db.Juicers.Select(j => j.User).Distinct().CountAsync(ctx); - var msg = $"Total Juicers: {count:N0}; Total Handed Out: KKK{sum:C}; Total Users Juiced: {totalUsers:N0}; Average Juicers / User: {count / totalUsers:N}[br]Top Leeches: "; + var msg = $"Total Juicers: {count:N0}; Total Handed Out: {sum:C0}; Total Users Juiced: {totalUsers:N0}; Average Juicers / User: {count / totalUsers:N0}[br]Top Leeches: "; var i = 0; foreach (var leech in topLeeches) { i++; - msg += $"{i}. {leech.User} with KKK{leech.Amount:C} juiced; "; + msg += $"[b]{i}.[/b] {leech.User} with {leech.Amount:C0} juiced; "; } - botInstance.SendChatMessage(msg, true); + botInstance.SendChatMessage(msg.TrimEnd().TrimEnd(';'), true); } } \ No newline at end of file