fix: Cleanup code to follow good practice
All checks were successful
Build Docker / Build Image (push) Successful in 2m37s

Add line in verify mesage mentioning the ability to set the record onchain
This commit is contained in:
2025-10-09 13:28:05 +11:00
parent d1b8037a1a
commit 226210ee0c
3 changed files with 14 additions and 4 deletions

11
bot.py
View File

@@ -148,6 +148,7 @@ async def verify(ctx, domain:str):
message += f"If you use Namebase, you can do this automatically by visiting the following link:\n"
message += f"<https://namebase.io/next/domain-manager/{parts[-1]}/records?records={records}>\n\n"
message += f"Once the record is set (this may take a few minutes) you can run this command again or manually set your nickname to `{name_rendered}/`."
message += f"\n\nAlternatively, you can set the TXT record onchain, this will take longer to propagate.\n\n"
await ctx.response.send_message(message,ephemeral=True)
@@ -157,6 +158,8 @@ async def verify(ctx, domain:str):
@client.event
async def on_ready():
global ADMINID
if not client.application:
return # not fully ready yet
ADMINID = client.application.owner.id
await tree.sync()
@@ -227,5 +230,9 @@ async def on_reaction_add(reaction, user):
return
client.run(TOKEN)
if __name__ == "__main__":
if not TOKEN:
print("No token found")
exit(1)
print("Starting bot")
client.run(TOKEN)