bot: Fixed parsing
All checks were successful
Build Docker / Build Master (push) Successful in 21s
Build Docker / Build Bot (push) Successful in 25s

This commit is contained in:
Nathan Woodburn 2023-08-24 14:41:43 +10:00
parent ec052b4ec1
commit caa3c988d4
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -82,7 +82,7 @@ async def siteinfo(ctx, domain: str):
if r.status_code == 200:
json = r.json()
if json['success'] == "true":
await ctx.response.send_message(f"Site: {domain}\nStatus: {json['status']}\nWorker: {json['worker']}")
await ctx.response.send_message(f"Here is the site info for {json['domain']}\nIP: {json['ip']}\nTLSA: {json['tlsa']}")
else:
await ctx.response.send_message(f"Error getting site info\n" + json['error'])
else: