nicolas-cage-bot

command module
v0.0.0-...-a4637ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2017 License: MIT Imports: 10 Imported by: 0

README

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>"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL