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}",