From 7e3ad49a0da5475ce65e7f93826e2549928b36c1 Mon Sep 17 00:00:00 2001 From: un1xx Date: Sun, 11 May 2025 17:41:57 +0530 Subject: [PATCH] modify wc --- exts/banking.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/exts/banking.py b/exts/banking.py index dbf47b8..958429a 100644 --- a/exts/banking.py +++ b/exts/banking.py @@ -194,18 +194,22 @@ class Banking(commands.Cog): resource_delta = [] kit = self.dkit - gator = await kit.query( + dilf = await kit.query( "nations", - {"id": 103764, "first": 1}, + {"alliance_id": 10198}, "id, nation_name, discord, money, food, steel, gasoline, munitions, aluminum, uranium, cities {name}", ) - gator = gator.nations[0] - nations.append(gator) + nations.extend(dilf.nations) if ids: + notinalliance = [n for n in ids if n not in [n.id for n in nations]] nations = [n for n in nations if n.id in ids] + if not nations: + return await ctx.send(f"> {ids} not in MILF or DILF") + if notinalliance: + await ctx.send(f"> {ids} not in MILF or DILF") for nation in nations: - if nation.id not in self.WARCHEST_IDS: + if (nation.id not in self.WARCHEST_IDS) and (not ids): continue cities = len(nation.cities) delta = BaseMul.calc(cities, nation)