A Haiku detector for Lita
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
locales
spec
templates
.gitignore
.rspec
.travis.yml
Gemfile
README.md
Rakefile
lita-poetry.gemspec

README.md

Gem Version Coverage Status Build Status

lita-poetry

Lita-poetry passively listens for haikus (accidental or not) and alerts the channel when a haiku has formed.

Jimmy > Flash of steel stills me
Jimmy > calmness mirrors the ocean
Jimmy > I await the waves
Lita > Garth, that was a haiku!

Installation

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

gem "lita-poetry"

Configuration

strict_mode (defaults to false) will only allow haikus by a single user, whereas disabling strict_mode will allow multi-user haikus.

Lita.configure do |config|
  config.handlers.poetry.strict_mode = true || false
end

##Usage Three commands are available: haiku last, haiku total, and haiku get [integer]

You > Litabot: haiku last
Litabot > haiku are easy; But some times they dont make sense; Refrigerator
You > Litabot: haiku total
Litabot > 5
You > Litabot: haiku get 3
Litabot > In the ponds cool depths; the happy frog plays in spring; his life a slow game

License

MIT