From 9f753d31c6dbfd88f8171b5e5a570af41082a05f Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 14 Jan 2026 11:32:18 -0700 Subject: [PATCH] feat: Implement Tannerbot notification for alerts --- main.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index f9e4247..7f5cf5e 100644 --- a/main.py +++ b/main.py @@ -19,9 +19,12 @@ except FileNotFoundError: logging.error("hosts.json not found. Please copy hosts.json.example to hosts.json and configure it.") exit(1) - -def alert_tanner(msg): - pass +def alert_tanner(message): + try: + params = {'ssl-monitor': message} + requests.get('https://tbot.tannercollin.com/message', params=params, timeout=4) + except BaseException as e: + logging.error('Problem alerting Tanner: ' + str(e)) async def check_host_cert(host, port, seen_serials): "check a single host's cert"