update
This commit is contained in:
1 parent
7db6bbe839
commit
76d148408a
1 file changed
+5
@@ -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}",
|
||||
|
||||
Reference in new issue
Block a user