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)