From cefadb2b91e307c3cfd085974d3974dce139c1f1 Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Sun, 16 Feb 2025 20:47:22 -0800 Subject: [PATCH] Make webhook avatar selection case-insensetive --- admission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admission.py b/admission.py index 002b85a..250843b 100644 --- a/admission.py +++ b/admission.py @@ -26,7 +26,7 @@ def webhook_online(stream) -> None: data = {"username": f"{config.WEBHOOK_NAME} Online", "content": config.WEBHOOK_ONLINE} if config.is_avatar_ready(): - target_av = f"{stream[1]}/{stream[2]}.png" + target_av = f"{stream[1]}/{stream[2]}.png".lower() avatar = target_av if Path(config.WEBHOOK_AVATAR_PATH, target_av).is_file() else "default.png" data["avatar_url"] = f"{config.WEBHOOK_AVATAR_URL}/{avatar}"