From 447e5dc4dfd1966e2e87b81c84827e86f8787cf7 Mon Sep 17 00:00:00 2001 From: JakeBreath Date: Sun, 16 Aug 2026 20:13:25 -0500 Subject: [PATCH] Cosmetic change --- checks.py | 4 ++++ main.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/checks.py b/checks.py index 51e00b6..55eb4cf 100644 --- a/checks.py +++ b/checks.py @@ -10,16 +10,19 @@ TARGETS = [ 'name': 'Gitea', 'url': 'https://gitea.rainbow-herring.ts.net/api/healthz', 'kind': 'gitea', + 'critical': True, }, { 'name': 'Packs Site (Production)', 'url': 'https://jakerasp.rainbow-herring.ts.net/healthz/', 'kind': 'packs', + 'critical': True, }, { 'name': 'Packs Site (Development)', 'url': 'https://jakepc.rainbow-herring.ts.net/healthz/', 'kind': 'packs', + 'critical': False, }, ] @@ -80,6 +83,7 @@ async def check_target(session, target, timeout): 'name': target['name'], 'kind': target.get('kind', ''), 'url': target['url'], + 'critical': target.get('critical', True), 'up': False, 'status_code': None, 'latency_ms': None, diff --git a/main.py b/main.py index ac04b4a..67faf3d 100644 --- a/main.py +++ b/main.py @@ -61,7 +61,7 @@ class HealthBot(discord.Client): return await checks.run_checks(session, config.CHECK_TIMEOUT) def build_embed(self, results): - all_up = all(r['up'] for r in results) + all_up = all(r['up'] for r in results if r.get('critical', True)) color = discord.Color.green() if all_up else discord.Color.red() embed = discord.Embed( title='Service Health',