update bank command
This commit is contained in:
1 parent
7aa88fd48d
commit
fbec71da24
1 file changed
+6
-3
+6
-3
@@ -422,13 +422,13 @@ class Banking(commands.Cog):
|
||||
m_resources = await self.kit.query(
|
||||
"alliances",
|
||||
{"id": 10177, "first": 1},
|
||||
"name, flag, money, food, uranium, coal, iron, oil, bauxite, iron, lead, munitions, gasoline, aluminum, steel",
|
||||
"id, name, flag, money, food, uranium, coal, iron, oil, bauxite, iron, lead, munitions, gasoline, aluminum, steel",
|
||||
)
|
||||
m_resources = m_resources.alliances[0]
|
||||
d_resources = await self.dkit.query(
|
||||
"alliances",
|
||||
{"id": 10198, "first": 1},
|
||||
"name,flag, money, food, uranium, coal, iron, oil, bauxite, iron, lead, munitions, gasoline, aluminum, steel",
|
||||
"id, name,flag, money, food, uranium, coal, iron, oil, bauxite, iron, lead, munitions, gasoline, aluminum, steel",
|
||||
)
|
||||
d_resources = d_resources.alliances[0]
|
||||
|
||||
@@ -438,6 +438,7 @@ class Banking(commands.Cog):
|
||||
title=f"Resources for {resources.name}",
|
||||
timestamp=datetime.datetime.utcnow(),
|
||||
color=ctx.author.color,
|
||||
url= f"https://politicsandwar.com/alliance/id={resources.id}"
|
||||
)
|
||||
e.description = (
|
||||
f"{Emojis.money} {resources.money:,}\n"
|
||||
@@ -453,8 +454,10 @@ class Banking(commands.Cog):
|
||||
f"{Emojis.aluminum} {resources.aluminum:,}\n"
|
||||
f"{Emojis.steel} {resources.steel:,}"
|
||||
)
|
||||
e.set_footer(icon_url=resources.flag)
|
||||
e.set_thumbnail(url=resources.flag)
|
||||
e.set_footer(text='Bank', icon_url=ctx.author.avatar)
|
||||
embeds.append(e)
|
||||
|
||||
await ctx.paginate(pages=embeds)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user