fix logical error in rss

This commit is contained in:
un1xx committed 2024-09-03 23:11:25 +05:30
1 parent c12765c774
commit 6d4f5e12e8
1 file changed
+3 -1
+3 -1
View File
@@ -353,12 +353,14 @@ class Banking(commands.Cog):
) )
@commands.has_role(987770837627187250) @commands.has_role(987770837627187250)
@commands.command() @commands.command()
async def rss(self, ctx: CustomCtx, ids: commands.Greedy[int] = [], *, nation_names: str|None =None): async def rss(self, ctx: CustomCtx, ids: commands.Greedy[int] = None, *, nation_names: str|None =None):
"""get resources of a nation in alliance """get resources of a nation in alliance
Args: Args:
ids (commands.Greedy[int]): ids of nations ids (commands.Greedy[int]): ids of nations
""" """
if ids is None:
ids = []
d_kit = pnwkit.QueryKit( d_kit = pnwkit.QueryKit(
api_key=os.getenv("pnwDILFKEY"), api_key=os.getenv("pnwDILFKEY"),
bot_key=os.getenv("pnwBOTKEY"), bot_key=os.getenv("pnwBOTKEY"),