add a user-agent so they know who's killing their servers :D

This commit is contained in:
Rana 2025-06-27 12:15:42 +01:00
parent 5c3d854fdf
commit 8f9a4540f7

View file

@ -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())