From 92364e261a4ccb7875e6663a88dd838cae4048ba Mon Sep 17 00:00:00 2001 From: vgallegoiz Date: Sun, 5 May 2024 21:36:42 +0200 Subject: [PATCH] Send message when host is available --- status.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/status.py b/status.py index e60dc0f..5620a9f 100644 --- a/status.py +++ b/status.py @@ -53,11 +53,10 @@ def check_ping(hosts, fails): elif response.success(): if host in fails: fails.remove(host) + send_discord_message(f"{host} disponible de nuevo") logging.info(f"Ping correct: {host}") except Exception as e: logging.info(f"Bad ping: {host}") - print(e) - print(fails) save_status(fails) def save_status(fails):