update refill cmd

This commit is contained in:
un1xx committed 2025-06-06 21:15:42 +05:30
1 parent 708bffde8f
commit 2efd6161ad
1 file changed
+6 -9
+6 -9
View File
@@ -1380,8 +1380,6 @@ class Banking(commands.Cog):
@commands.command()
async def refill(self, ctx: CustomCtx, ids: commands.Greedy[int]):
revenue_data = await self.get_alliance_rev(ids)
await ctx.cbsend(revenue_data[0])
def calc_tosend(raw: float, on_nation: float):
return int(7 * abs(raw) - on_nation)
@@ -1401,15 +1399,14 @@ class Banking(commands.Cog):
count = 0
for data in revenue_data:
oil = data.get("oil")
coal = data.get("coal")
lead = data.get("lead")
iron = data.get("iron")
bauxite = data.get("bauxite")
revenue = data.get("revenue")
oil = revenue.get("oil")
coal = revenue.get("coal")
lead = revenue.get("lead")
iron = revenue.get("iron")
bauxite = revenue.get("bauxite")
data["refill"] = dict()
text = ""
if oil is None:
await ctx.send(data)
if oil < 0:
tosend = calc_tosend(oil, data.get("nation_oil"))
data["refill"].update(oil=tosend)