This commit is contained in:
parent
32c6f0fb09
commit
af3f2c49d2
3
bot.py
3
bot.py
@ -223,6 +223,9 @@ async def ssl(ctx, domain: str):
|
|||||||
if domain in domains:
|
if domain in domains:
|
||||||
domain_check = True
|
domain_check = True
|
||||||
|
|
||||||
|
expiry_date = cert_obj.not_valid_after
|
||||||
|
message = message + "\n## Certificate Expiry:\n" + str(expiry_date) + "\n"
|
||||||
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
message = message + "\n## Website Certificate:\n:x: No certificate found\n"
|
message = message + "\n## Website Certificate:\n:x: No certificate found\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user