Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #46 from is-a-dev/wdhdev-patch-1
Browse files Browse the repository at this point in the history
update whois command text
  • Loading branch information
MaskDuck authored May 18, 2024
2 parents 8e15c14 + 2a29008 commit 944b9cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _orangcbot/extensions/nonsense.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,24 +192,24 @@ def fetch_description_about_a_domain(self, data: Dict):
# unknown contact, ignoring
parsed_contact[platform] = username

contact_desc = """## Contact Information\n"""
contact_desc = """**Contact Info**:\n"""
for x, y in parsed_contact.items():
contact_desc += f"**{x}**: {y}\n"

record_desc = """## Records\n"""
record_desc = """**Record Info**:\n"""
for x, y in data["record"].items():
if x == "CNAME":
record_desc += f"**{x}**: {y} [(visit this CNAME?)](https://{y})\n"
else:
record_desc += f"**{x}**: {y}\n"

if domain_desc := data.get("description"):
domain_desc = "**DESCRIPTION**: " + domain_desc + "\n"
domain_desc = "**Description**: " + domain_desc + "\n"
else:
domain_desc = None

if repo := data.get("repo"):
repo_desc = "**REPO**: " + f"[here]({repo})" + "\n"
repo_desc = "**Repository**: " + f"[here]({repo})" + "\n"
else:
repo_desc = None

Expand Down

0 comments on commit 944b9cb

Please sign in to comment.