0.0
No commit activity in last 3 years
No release in over 3 years
A Haiku detector 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.0

Runtime

>= 4.0
 Project Readme

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