Skip to content

License

Notifications You must be signed in to change notification settings

slashtechno/quick-deactivate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c2c53c6 · · Aug 23, 2025

History

23 Commits
Aug 22, 2025
Aug 23, 2025
Jun 30, 2025
Jun 28, 2025
Aug 22, 2025
Jun 28, 2025
Jul 24, 2025
Aug 22, 2025
Jun 28, 2025
Aug 22, 2025
Jun 30, 2025
Jun 30, 2025

Repository files navigation

Quick deactivate

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.

Installation & Runningning

Using Docker Compose

  1. Copy sample.env to .env and fill in your environment variables.
  2. Build and start the service:
    docker compose up --build
    This will build the Docker image and run the app using main.ts with all permissions.

Using Deno Directly

  1. Install Deno if you haven't already.
  2. Copy sample.env to .env and fill in your environment variables.
  3. Run the app:
    deno run --allow-all --env-file main.ts 

Slack Commands

/deactivate @username

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.

/clear-deactivation-backlog

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published