1 KiB
1 KiB
Hack Club Eligiblity Bot
A bot that allows you to view the eligiblity of someone in Hack Club for certain swag (basically "are you a student?")
This uses the Hack Club Eligiblity API (duh).
Usage
Run /check-eligiblity
in any Slack channel, and optionally ping a user to check their eligiblity (otherwise it shows your own).
If you view your own eligiblity, you can also see the raw response from the API.
Installation
- Clone the repo.
$ git clone https://git.hackclub.app/haroon/hack-club-eligiblity.git
- Enter the newly created directory.
$ cd hack-club-eligiblity
- Add your bot token and signing secret to .env:
$ <editor> .env
# Add:
SLACK_BOT_TOKEN=<>
SLACK_SIGNING_SECRET=<>
- Install dependencies:
$ npm i
- Run!
$ npx tsx .
- (Optional) Rename
whitelist.example.json
towhitelist.json
and fill it with Slack User IDs who apart from admins/owners/primary owners should be able to view other people's verification.
[
"UA1B2C3D4E5",
"U0123456789"
]