This bot will reply the image URL to the slash command.
- Get google custom search API Key -> CUSTOM_SEARCH_KEY
Google Custom search - Plese add search engine and get engine key -> CUSTOM_SEARCH_ENGINE_ID
Add search engine
- Create slack bot and get slack token
Create slack bot
- Create new app and select workspace
- select "Slash Command"
- create new slash command
- select "Basic informaition"
- get "Verification Token"
VERIFICATION_TOKEN
: Slack vertification tokenCUSTOM_SEARCH_KEY
: Google custom search api keyCUSTOM_SEARCH_ENGINE_ID
: Google custom search engine ID
- installed ngrok
- innstalled go v1.10.1
# Start ngrok port 8080 OR other port
$ ngrok 8080
# Start go server
$ go run main.go
# Stop ngrok OR go server
$ ctrl + c