- Set environment First, download Google Cloud API json file, and set key.json at project root directory.
export SLACK_BOT_TOKEN=<Your slack bot oauth token>
export SLACK_APP_TOKEN=<Your slack app token for socket mode>
export GOOGLE_API_TOKEN=<Your Google Cloud Translate API token>
export GOOGLE_APPLICATION_CREDENTIALS=<Your Google Cloud service account credential JSON file>
export PROJECT_ID=<Your Google Cloud Project ID>
export LOG_FILE=<set log file path>
or create .env
file.
SLACK_BOT_TOKEN=
SLACK_APP_TOKEN=
GOOGLE_API_TOKEN=
GOOGLE_APPLICATION_CREDENTIALS=
PROJECT_ID=
LOG_FILE=
- Run bot server and check integration with slack
- run go command
go run main.go
- run docker
- set Google Cloud service account file.
./key.json
- set
.env
file.
- set Google Cloud service account file.
docker compose up --build