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)