Skip to content

chriswoodrich/lita-poetry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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