A chat bot for twitch.tv using Markov chains.
- Clone repo
- npm install
- Get a piece of literature or chat log and place it in the
texts/
folder. - Set up the config file with
cp config_template.js config.js
and enter in the appropriate twitch.tv username and password. Grab your password here. - Run
twitch_markov_bot.js
with this command:node twitch_markov_bot.js [filename] [twitchtv channel] [seconds between messages]
. Example:node twitch_markov_bot.js texts/keats.txt sodapoppin 10
.
Simply edit markov.js to play around with sentence generation algorithm.
Thanks to brunal for his Markov chain code.