add a user-agent so they know who's killing their servers :D
This commit is contained in:
parent
5c3d854fdf
commit
8f9a4540f7
1 changed files with 3 additions and 0 deletions
3
index.ts
3
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, {
|
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"
|
redirect: "follow"
|
||||||
}).then(res => res.json())
|
}).then(res => res.json())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue