A markov chain bot for your Slack channel
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
import.go
main.go
markov.go
twitter.go
utils.go
utils_test.go
web.go

README.md

slack-markov

A markov chain bot for Slack written in Go (golang)

Build Status

Usage

  • Build the code with go build

  • Start the bot with ./slack-markov on an internet-accessible server. (Check the output of ./slack-markov -h for configuration options)

  • Configure an Outgoing Webhook in your Slack and point it to the place where your bot is running. For example: http://example.com:8000/

  • The bot will listen to incoming requests and add the messages to the chain. At a configurable response rate, it will also build and send a response to the channel

Tips

  • Export your team's data from https://my.slack.com/services/export, and use that to seed the chain. See the -importDir and -importChan options.
  • Keep your bot scoped to one channel.
  • Adjust the -responseChance option based on your team's activity and how much you want to annoy your co-workers
  • Look into the -twitter* options if you enjoy Twitter and libel