This commit is contained in:
karan committed 2025-06-01 19:12:47 +05:30
1 parent a6ac1caff4
commit cb6e88758d
1 file changed
+7 -9
+7 -9
View File
@@ -970,21 +970,19 @@ class Banking(commands.Cog):
"nation_id": nation.id,
"nation_name": nation.nation_name,
"revenue": revenue,
"nation_coal": nation.coal,
"nation_oil": nation.oil,
"nation_iron": nation.iron,
"nation_bauxite": nation.bauxite,
"nation_lead": nation.lead,
}
)
nation_rss = {
"nation_coal": nation.coal,
"nation_oil": nation.oil,
"nation_iron": nation.iron,
"nation_bauxite": nation.bauxite,
"nation_lead": nation.lead
}
except Exception as e:
await ctx.cbsend(f"{traceback.format_exc()}")
# Format and send the results
await self.send_revenue_results(ctx, revenue_data, nation_rss)
await self.send_revenue_results(ctx, revenue_data)
except Exception as e:
await ctx.send(f"> Error getting game data: {str(e)}")
@@ -1336,7 +1334,7 @@ class Banking(commands.Cog):
)
e.add_field(name="Net raws production", value=revenue["net_rev_txt"], inline=False)
e.add_field(name="On Nation", value=f"Coal: {nation_rss[nation_coal]}\nIron: {nation_rss[nation_iron]}\nTBC", inline=False)
e.add_field(name="On Nation", value=f"Coal: {data[nation_coal]}\nIron: {data[nation_iron]}\nTBC", inline=False)
if revenue["footer"]: