This commit is contained in:
parent
34a2b70653
commit
47743be647
11
bot.py
11
bot.py
@ -359,8 +359,17 @@ def checkForSSLExpiry():
|
|||||||
user = client.get_user(int(userid))
|
user = client.get_user(int(userid))
|
||||||
if user:
|
if user:
|
||||||
user.send(f"SSL certificate for {domain} expires soon")
|
user.send(f"SSL certificate for {domain} expires soon")
|
||||||
except:
|
else:
|
||||||
|
# Test by sending a message
|
||||||
|
user = client.get_user(int(userid))
|
||||||
|
if user:
|
||||||
|
user.send(f"SSL certificate for {domain} is valid")
|
||||||
|
except Exception as e:
|
||||||
|
print(e, flush=True)
|
||||||
continue
|
continue
|
||||||
|
print("SSL check complete", flush=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@tree.command(name="ssldomains", description="List domains with SSL certificates")
|
@tree.command(name="ssldomains", description="List domains with SSL certificates")
|
||||||
async def ssldomains(ctx):
|
async def ssldomains(ctx):
|
||||||
|
Loading…
Reference in New Issue
Block a user