Ruboty::Kokodeikku

Ruboty plug-in to find haiku from our daily conversations.

Usage

Requires mecab. For heroku, you can use heroku-buildpack-mecab.

heroku config:set \
  BUILDPACK_URL=https://github.com/diasks2/heroku-buildpack-mecab.git\
  LD_LIBRARY_PATH=/app/vendor/mecab/lib\
  MECAB_PATH=/app/vendor/mecab/lib/libmecab.so

ENV

KOKODEIKKU_CHANNEL - Pass comma-separated names to specify channels (optional)
KOKODEIKKU_PREFIX  - Pass optional prefix message (default: `"ここで一句"`)
KOKODEIKKU_RULE    - Pass optional song rule (default: `"5,7,5"`)