How sathiya-mit/go-slack-interactive works
Project type and purpose
• This is a small, single-binary Slack interactive‐message bot written in Go.
• It listens for Slack interactive message callbacks, processes the payload, and posts or updates messages back to Slack via the Slack Web API.
• It can run locally (with ngrok tunneling) or be containerized (Docker) and deployed via Cloud Build (cloudbuild.yaml).
File structure
• Top‐level files:
• main.go – entry point, starts HTTP server
• handler.go – HTTP handler for Slack events
• slack.go – wrapper functions for calling Slack Web API
• Dockerfile & cloudbuild.yaml – container build and CI/CD
• Gopkg.toml / Gopkg.lock – dependency management
• handler.go, slack.go, main.go – comprise the core application
• README.md – usage instructions
• No database or persistent store—state is ephemeral or encoded in messages.
• Configuration is via environment variables (BOT_ID, BOT_TOKEN, VERIFICATION_TOKEN, CHANNEL_ID).
README for additional insights
• Environment variables required for Slack authentication and channel scoping.
• Local development via ngrok for public HTTP endpoint.
• Production deployment implied by Docker and cloudbuild.yaml (likely to GCP services such as Cloud Run or GKE).