lcmany
This commit is contained in:
parent
37ea0c7eee
commit
3de4fc0f75
@ -124,6 +124,12 @@ class Night(commands.Cog):
|
|||||||
return
|
return
|
||||||
await message.pin()
|
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()
|
@commands.hybrid_command()
|
||||||
async def tex(self, ctx: commands.Context, *, code: Annotated[list[str], CodeblockConverter]):
|
async def tex(self, ctx: commands.Context, *, code: Annotated[list[str], CodeblockConverter]):
|
||||||
print(code)
|
print(code)
|
||||||
|
Loading…
Reference in New Issue
Block a user