From 3de4fc0f75dcd257ec6254788d743f96a6f24e47 Mon Sep 17 00:00:00 2001 From: timofey Date: Thu, 16 May 2024 23:52:19 +0000 Subject: [PATCH] lcmany --- nightly/nightly/night.py | 6 ++++++ 1 file changed, 6 insertions(+) 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)