update warchest cmd
This commit is contained in:
1 parent
565761ec38
commit
a764288394
1 file changed
+5
-5
+5
-5
@@ -163,11 +163,11 @@ class Banking(commands.Cog):
|
||||
'cities': cities,
|
||||
'name': nation.nation_name
|
||||
})
|
||||
for key in delta:
|
||||
if isinstance(delta[key], float):
|
||||
delta[key] = int(delta[key])
|
||||
resource_delta.append(delta)
|
||||
buffer = io.StringIO()
|
||||
buffer.write(str(resource_delta))
|
||||
buffer.seek(0)
|
||||
await ctx.send(file=discord.File(fp=buffer, filename="rs.txt"))
|
||||
|
||||
|
||||
embeds = []
|
||||
e = discord.Embed(title="Warchest Resources")
|
||||
@@ -177,7 +177,7 @@ class Banking(commands.Cog):
|
||||
e.add_field(
|
||||
name=rd.get('name'),
|
||||
value= (
|
||||
f"**[{rd.get('discord')}**](https://politicsandwar.com/nation/id={rd.get('id')}) (c{rd.get('cities')})\n\n"
|
||||
f"[{rd.get('discord')}](https://politicsandwar.com/nation/id={rd.get('id')}) (c{rd.get('cities')})\n\n"
|
||||
f"{Emojis.money} {rd.get('money'):,}\n"
|
||||
f"{Emojis.food} {rd.get('food'):,}\n"
|
||||
f"{Emojis.uranium} {rd.get('uranium'):,}\n"
|
||||
|
||||
Reference in new issue
Block a user