This is a Slack bot built for Hack Club, a nonprofit organization serving as both a community for high-school programmers, makers, and hackers, but also as a resource hub providing grants and incentives, such as free laptops, Flipper Zeros, and a lot ot more. These programs are <=18 but we get many adults or people who want to defraud these programs trying to joining. We quickly identify them, but deactivating manually can get difficult as we need to deactivate more and more accounts. This tool aims to automate that by allowing us to simply react to a message sent by our existing verification infrastructure to quickly confirm the deactivation of a user.er. user.
- Copy
sample.envto.envand fill in your environment variables. - Build and start the service:
This will build the Docker image and run the app using
docker compose up --build
main.tswith all permissions.
- Install Deno if you haven't already.
- Copy
sample.envto.envand fill in your environment variables. - Run the app:
deno run --allow-all --env-file main.ts
Deactivates the specified user (e.g., /deactivate @username). Only workspace admins can use this command. If successful, the user will be deactivated and a log will be sent to the webhook.
Scans the #verifications-deactivations channel for unmarked messages and attempts to deactivate users who have not already been processed. Only workspace admins can use this command.