feat: Allow different capitalization
All checks were successful
Build Docker / Build Image (push) Successful in 1m4s

This commit is contained in:
2025-04-26 12:54:54 +10:00
parent c0f030919a
commit cd38a56c8d

2
bot.py
View File

@@ -108,7 +108,7 @@ async def setverifiedrole(ctx,role:discord.Role):
@tree.command(name="verify", description="Verifies your ownership of a Handshake name and sets your nickname.") @tree.command(name="verify", description="Verifies your ownership of a Handshake name and sets your nickname.")
async def verify(ctx, domain:str): async def verify(ctx, domain:str):
name_idna = domain.lower().strip().rstrip("/").encode("idna") name_idna = domain.strip().rstrip("/").encode("idna")
name_ascii = name_idna.decode("ascii") name_ascii = name_idna.decode("ascii")
parts = name_ascii.split(".") parts = name_ascii.split(".")