Skip to content

dirk/lita-markov

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Markov chains for Lita.

Resources

License

Stars

Watchers

Forks

Packages

No packages published