Approve or deny Privilege Manager elevation requests directly from Slack
Go to api.slack.com/apps, create a new app from scratch, and select your workspace.
Toggle Socket Mode on and generate an App-Level Token with the connections:write scope. This becomes your SLACK_APP_TOKEN.
Add bot scopes: app_mentions:read, chat:write, im:history, users:read. Subscribe to app_mention and message.im events. Enable Interactivity.
Install the app to your workspace and copy the Bot User OAuth Token (SLACK_BOT_TOKEN).
Set your Privilege Manager credentials and Slack tokens in .env.
cp .env.example .env
Install dependencies and start the bot locally, or deploy to AWS ECS Fargate for 24/7 operation (~$9/month).
pip install -r requirements.txt && python -m slack_bot.app
Add the bot to a Slack channel and @mention it. The bot responds with a welcome message and starts posting approval cards.