This commit is contained in:
AF 2024-05-16 23:39:43 +00:00
parent bb85c7b875
commit 0413e9fe13
Signed by: alisa
SSH Key Fingerprint: SHA256:vNY4pdIZvO1FYJKHROkdHLtvyopizvZVAEwg9AF6h04

View File

@ -84,7 +84,7 @@ class Night(commands.Cog):
print("synced") print("synced")
await ctx.reply("synced") await ctx.reply("synced")
@commands.hybrid_command() @commands.hybrid_command(aliases=["lc"])
async def leetcode(self, ctx: commands.Context, url: str): async def leetcode(self, ctx: commands.Context, url: str):
match = re.search(r"/problems/([a-z0-9\-]*)", url) match = re.search(r"/problems/([a-z0-9\-]*)", url)
if not match: if not match: