nicolas-cage-bot
A Slack bot written in golang for all things Nicolas Cage.
The bot currently provides recommendations for movies starring Nicolas Cage
available on Netflix. It uses the
NetflixRoulette to achieve this.
The implementation uses the nlopes/slack
go library to subscribe to the Slack rtm api for
real time messaging.
Running the bot
Store your slack token in a file to avoid having it end up in your sh history:
$ vim ~/slacktoken
export SLACK_TOKEN=xoxb-<somevalue>
$ . ~/slacktoken
Then run it with Docker:
docker run -e SLACK_TOKEN=$SLACK_TOKEN snorremd/nicolas-cage-bot:latest
Or compile and run it yourself:
go build main.go
SLACK_TOKEN=$SLACK_TOKEN ./main
You can also use docker-compose:
version: "3"
services:
cagebot:
image: snorremd/nicolas-cage-bot:latest
restart: unless-stopped
environment:
SLACK_TOKEN: "<yourtoken>"