A markov chain bot for Slack written in Go (golang)
-
Build the code with
go build -
Start the bot with
./slack-markovon an internet-accessible server. (Check the output of./slack-markov -hfor 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
- Export your team's data from https://my.slack.com/services/export, and use that to seed the chain. See the
-importDirand-importChanoptions. - Keep your bot scoped to one channel.
- Adjust the
-responseChanceoption 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
