docker run --rm --name slagobot -d vensder/slack-go-bot -slack-token xoxb-000000-xxxxxxxx-xxxxxxxxxxxxxxx
Or use environment variable "SLACK_TOKEN":
export SLACK_TOKEN='xoxb-000000-xxxxxxxx-xxxxxxxxxxxxxxx'
docker run --rm --name slagobot -d vensder/slack-go-bot
git clone https://github.com/vensder/slack-go-bot.git
cd slack-go-bot
Run this bot and pass your Slack token:
go run slagobot.go -slack-token xoxb-000000-xxxxxxxx-xxxxxxxxxxxxxxx
Or use environment variable "SLACK_TOKEN":
export SLACK_TOKEN='xoxb-000000-xxxxxxxx-xxxxxxxxxxxxxxx'
go run slagobot.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -o slagobot -v -x slagobot.go
chmod +x slagobot
./slagobot.go -slack-token xoxb-000000-xxxxxxxx-xxxxxxxxxxxxxxx
docker build -t slagobot .
docker run --rm --name slagobot -d slagobot -slack-token xoxb-000000-xxxxxxxx-xxxxxxxxxxxxxxx