From ca2acbffe6ddfe4142e34edd1a2cd45e78f400e0 Mon Sep 17 00:00:00 2001 From: SkyfallWasTaken Date: Tue, 23 Jul 2024 10:06:35 +0100 Subject: [PATCH] Fix Slack group ID pings --- src/lib.rs | 2 ++ wrangler.toml | 1 + 2 files changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 800a7e3..fc3e54f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -68,6 +68,8 @@ async fn run_scrape(env: Env) -> Result { .body(slack_body.to_string()) .send() .await + .unwrap() + .error_for_status() .unwrap(); // ntfy webhook diff --git a/wrangler.toml b/wrangler.toml index 7c55bd0..b3434ed 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -14,6 +14,7 @@ mode = "smart" [vars] NTFY_URL = "https://ntfy.hackclub.app/arcade-monitor" ARCADE_SHOP_URL = "https://hackclub.com/arcade/shop/" +SLACK_GROUP_ID = "S07B2CBT2DV" [[kv_namespaces]] binding = "SHOP_ITEMS"