From 966e14797a791f9ccf28b8233238e2ab7462638f Mon Sep 17 00:00:00 2001 From: Ryan Chen Date: Fri, 26 Sep 2025 10:40:12 -0400 Subject: [PATCH] I terrify myself --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 7f9799b..163b2cd 100644 --- a/main.py +++ b/main.py @@ -8,7 +8,7 @@ def populate_webhook_lookup(): lookup = {} with open("lookup.txt", "r") as file: for line in file: - split_line = line.split(",") + split_line = line.rstrip().split(",") lookup[split_line[0]]= split_line[1] return lookup @@ -52,6 +52,7 @@ def convert(uuid): webhook = lookup.get(uuid) print(lookup) ghost_payload = request.get_json() + print(ghost_payload) discord_payload = convert_ghost_to_discord(ghost_payload) httpx.post(webhook, data=discord_payload)