From 688c1572f8e08e33cee08d8c4760bb6afb51f62d Mon Sep 17 00:00:00 2001
From: Toastie <toastie@toastiet0ast.com>
Date: Tue, 10 Dec 2024 22:23:12 +1300
Subject: [PATCH] .winlb looks better when there are no items

---
 src/EllieBot/Modules/Gambling/BetStatsCommands.cs | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/EllieBot/Modules/Gambling/BetStatsCommands.cs b/src/EllieBot/Modules/Gambling/BetStatsCommands.cs
index 8eb19b7..234c9b5 100644
--- a/src/EllieBot/Modules/Gambling/BetStatsCommands.cs
+++ b/src/EllieBot/Modules/Gambling/BetStatsCommands.cs
@@ -172,11 +172,17 @@ public partial class Gambling
                       var eb = CreateEmbed()
                           .WithOkColor();
 
+                      if (items.Count == 0)
+                      {
+                          eb.WithDescription(GetText(strs.empty_page));
+                          return eb;
+                      }
+
                       for (var i = 0; i < items.Count; i++)
                       {
                           var item = items[i];
                           eb.AddField($"#{item.Rank} {item.User}",
-                              $"[{item.Game}]{N(item.MaxWin)}");
+                              $"{N(item.MaxWin)}\n`{item.Game.ToString().ToLower()}`");
                       }
 
                       return eb;