0.0
No commit activity in last 3 years
No release in over 3 years
Markov chains for Lita.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
~> 3.0

Runtime

>= 4.6
~> 2.13.1
~> 4.28.0
 Project Readme

Markov chains for Lita

Listens to your public chat rooms and creates Markov chain databases for each user.

Installation

Add lita-markov to your Lita instance's Gemfile:

gem 'lita-markov'

Configure the database URL for your SQL database (Sequel is used for communicating with databases):

# lita_config.rb
Lita.configure do |config|
  # For example, using Heroku and their Postgresql addon, the database can be
  # configured by simply doing:
  config.handlers.markov.database_url = ENV['DATABASE_URL']
end

Usage

The bot will automatically ingest all messages into the Redis-backed Markov chain database. You can then query the bot for a generated chain:

user> mybot markov dirk
mybot> I love cookies!

License

Licensed under the 3-clause BSD license. See LICENSE for details.