rmmh/skybot — pull request #103 by Cheekio (2014-04-07 00:26:17+00:00)
Title: Markov Chains Plugin

Generate Markov Chains from whatever chatrooms skybot's in.

When you merge in, it'll automatically start making a table of 1, 2, and 3 word phrases to markoff of. Listens to every line, independent of channel, because why not.

Commands
=========
.chain (word or phrase)
------------
generate a markov chain based on the input word or phrase, assuming skybot has heard it before.

.markon (positive integer)
------------
Turn on automatic markov chains, each time a private message is sent, there is a 1.0/(positive integer) chance skybot will make up a random markov chain. Automatic Markov Chains are off by default.

.markoff
------------
Turns off automatic markov chains, because seriously, everything gets old after a while. Even randomly generated content.

Other Notes
==========
Uses safe db.execute("???", values) syntax, as well as scrubs .markon values before running them. Works on my version, ymmv as I don't keep an up to date skybot.