diff --git a/nightly/nightly/night.py b/nightly/nightly/night.py index bfa9b0b..8d08ad6 100644 --- a/nightly/nightly/night.py +++ b/nightly/nightly/night.py @@ -124,6 +124,12 @@ class Night(commands.Cog): return await message.pin() + @commands.command() + async def lcmany(self, ctx: commands.Context, *urls: str): + async with asyncio.TaskGroup() as tg: + for url in urls: + tg.create_task(self.leetcode(ctx, url)) + @commands.hybrid_command() async def tex(self, ctx: commands.Context, *, code: Annotated[list[str], CodeblockConverter]): print(code)