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(
|
||||
"nations",
|
||||
{"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]
|
||||
e = discord.Embed(
|
||||
@@ -407,6 +407,7 @@ class Banking(commands.Cog):
|
||||
f"{Emojis.steel} {nation.steel:,}\n"
|
||||
f"{Emojis.credits} {nation.credits}\n"
|
||||
)
|
||||
e.set_footer(text=nation.leader_name, icon_url=self.bot.user.avatar)
|
||||
embeds.append(e)
|
||||
|
||||
await ctx.paginate(pages=embeds)
|
||||
|
||||
Reference in new issue
Block a user