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,
|
'cities': cities,
|
||||||
'name': nation.nation_name
|
'name': nation.nation_name
|
||||||
})
|
})
|
||||||
|
for key in delta:
|
||||||
|
if isinstance(delta[key], float):
|
||||||
|
delta[key] = int(delta[key])
|
||||||
resource_delta.append(delta)
|
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 = []
|
embeds = []
|
||||||
e = discord.Embed(title="Warchest Resources")
|
e = discord.Embed(title="Warchest Resources")
|
||||||
@@ -177,7 +177,7 @@ class Banking(commands.Cog):
|
|||||||
e.add_field(
|
e.add_field(
|
||||||
name=rd.get('name'),
|
name=rd.get('name'),
|
||||||
value= (
|
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.money} {rd.get('money'):,}\n"
|
||||||
f"{Emojis.food} {rd.get('food'):,}\n"
|
f"{Emojis.food} {rd.get('food'):,}\n"
|
||||||
f"{Emojis.uranium} {rd.get('uranium'):,}\n"
|
f"{Emojis.uranium} {rd.get('uranium'):,}\n"
|
||||||
|
|||||||
Reference in new issue
Block a user