add leader name in rss comd
This commit is contained in:
1 parent
1ef882a760
commit
c12765c774
1 file changed
+2
-1
+2
-1
@@ -382,7 +382,7 @@ class Banking(commands.Cog):
|
|||||||
nation = await kit.query(
|
nation = await kit.query(
|
||||||
"nations",
|
"nations",
|
||||||
{"id": id, "first": 1},
|
{"id": id, "first": 1},
|
||||||
"id, nation_name, discord,money, flag, food, uranium, coal, iron, oil, bauxite, iron, lead, munitions, gasoline, aluminum, steel, num_cities, credits",
|
"id, nation_name,leader_name, discord,money, flag, food, uranium, coal, iron, oil, bauxite, iron, lead, munitions, gasoline, aluminum, steel, num_cities, credits",
|
||||||
)
|
)
|
||||||
nation = nation.nations[0]
|
nation = nation.nations[0]
|
||||||
e = discord.Embed(
|
e = discord.Embed(
|
||||||
@@ -407,6 +407,7 @@ class Banking(commands.Cog):
|
|||||||
f"{Emojis.steel} {nation.steel:,}\n"
|
f"{Emojis.steel} {nation.steel:,}\n"
|
||||||
f"{Emojis.credits} {nation.credits}\n"
|
f"{Emojis.credits} {nation.credits}\n"
|
||||||
)
|
)
|
||||||
|
e.set_footer(text=nation.leader_name, icon_url=self.bot.user.avatar)
|
||||||
embeds.append(e)
|
embeds.append(e)
|
||||||
|
|
||||||
await ctx.paginate(pages=embeds)
|
await ctx.paginate(pages=embeds)
|
||||||
|
|||||||
Reference in new issue
Block a user