From 2efd6161adb681d1491679fbc269d3a67b5ad173 Mon Sep 17 00:00:00 2001 From: un1xx Date: Fri, 6 Jun 2025 21:15:42 +0530 Subject: [PATCH] update refill cmd --- exts/banking.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/exts/banking.py b/exts/banking.py index ace4b3c..cc93e02 100644 --- a/exts/banking.py +++ b/exts/banking.py @@ -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)