bot: Fixed parsing
This commit is contained in:
parent
ec052b4ec1
commit
caa3c988d4
@ -82,7 +82,7 @@ async def siteinfo(ctx, domain: str):
|
|||||||
if r.status_code == 200:
|
if r.status_code == 200:
|
||||||
json = r.json()
|
json = r.json()
|
||||||
if json['success'] == "true":
|
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:
|
else:
|
||||||
await ctx.response.send_message(f"Error getting site info\n" + json['error'])
|
await ctx.response.send_message(f"Error getting site info\n" + json['error'])
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user