This is a Slack bot built for #construct hack clubbers.
Currently, I have two (but extensive) commands.
Incase this doesnt work and throws a DB error, please DM me (@kavyansh.). I need to run a script that updates the KV pairs for slack user ID and construct user ID.
Go to .env and put these in:
DEBUG=true|false>gt;
# Replace with your tokens
SLACK_BOT_TOKEN==your-bot-token>gt;
SLACK_APP_TOKEN==your-app-level-token>gt;
DEFAULT_CHANNEL=L=slack-channel-id>gt; # Clone this project onto your machine
git clone https://github.com/slack-samples/bolt-python-getting-started-app.git
# Change into this project
cd bolt-python-getting-started-app/
# Setup virtual environment
python3 -m venv .venv
source .venv/bin/activate
# Install the dependencies
pipx install uv # just install uv. skip the hassle.- Go to construct.hackclub.com
- Open Network tab in the Devtools
- Clear logs
- Reload Page
- Open the initial page load
- Search for the cookie header in there and paste them into ./construct_cookie (dont add any extra stuff, no newlines, no nothing!)
# For prod:
uv run app.py
# For dev:
uv run slack runnVoila! and just add the bot to your channel lol.