From 8f9a4540f701b20d195772822040ff2b710868d1 Mon Sep 17 00:00:00 2001 From: DaInfLoop Date: Fri, 27 Jun 2025 12:15:42 +0100 Subject: [PATCH] add a user-agent so they know who's killing their servers :D --- index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.ts b/index.ts index 7a08c24..be544ff 100644 --- a/index.ts +++ b/index.ts @@ -24,6 +24,9 @@ const eligibilityCmd = async (ctx: any) => { const res = await fetch("https://identity.hackclub.com/api/external/check?slack_id=" + userId, { + headers: { + 'User-Agent': 'HackClubEligibilityBot/1.0 (ran by Loop / dainfloop)' + } redirect: "follow" }).then(res => res.json())