No description
Find a file
2024-09-04 19:16:52 +01:00
.gitignore Hack Club Eligibility Bot™️ 2024-09-04 00:12:02 +01:00
index.ts i made a typo and i feel so silly 2024-09-04 19:16:52 +01:00
package-lock.json Hack Club Eligibility Bot™️ 2024-09-04 00:12:02 +01:00
package.json add different states + only allow viewing of other if whitelisted 2024-09-04 17:16:01 +01:00
README.md Hack Club Eligibility Bot™️ 2024-09-04 00:12:02 +01:00
renovate.json Add renovate.json 2024-09-04 00:18:35 +01:00
tsconfig.json Hack Club Eligibility Bot™️ 2024-09-04 00:12:02 +01:00

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

  1. Clone the repo.
$ git clone https://git.hackclub.app/haroon/hack-club-eligiblity.git
  1. Enter the newly created directory.
$ cd hack-club-eligiblity
  1. Add your bot token and signing secret to .env:
$ <editor> .env

# Add:
SLACK_BOT_TOKEN=<>
SLACK_SIGNING_SECRET=<>
  1. Install dependencies:
$ npm i
  1. Run!
$ npx tsx .