From 76d148408ad028737938a06502e6bf092a97bf2f Mon Sep 17 00:00:00 2001 From: un1xx Date: Fri, 18 Apr 2025 17:14:08 +0530 Subject: [PATCH] update --- exts/war_monitor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exts/war_monitor.py b/exts/war_monitor.py index 8671305..d11415a 100644 --- a/exts/war_monitor.py +++ b/exts/war_monitor.py @@ -146,6 +146,11 @@ class WarMonitor(commands.Cog): return channel async def build_nation_card(self, nation: pnwkit.Nation) -> discord.Embed: + def format_count(num): + if num >= 1000: + return f"{num/1000:,.1f}K" + else: + return num em = discord.Embed( title=f"{nation.nation_name}", url=f"https://politicsandwar.com/nation/id={nation.id}",