lita-pugbomb is a handler for Lita that displays an arbitrary number of images of pugs, via this single-serving Heroku app.
Sometimes you'd just rather see an array of pugs than whatever else is currently in chat.
Add lita-pugbomb
to your Lita instance's Gemfile:
gem "lita-pugbomb"
Lita: pug me
- display a single pug.
Lita: pug bomb
- display five pugs. Alternate syntax: Lita: pugbomb
Lita: pug bomb n
- display n pugs, where n is an integer.
Lita: how many pugs are there
- you can figure it out
You can optionally set a MAX_PUGS
environment variable. This variable will limitate how many pugs the command 'pug bomb' will send.
For example:
-
With
MAX_PUGS='3'
pug bomb
will respond with 3 pugspug bomb 2
will respond with 2 pugspug bomb 10
will respond wih 3 pugs
-
Without
MAX_PUGS
valuepug bomb
will respond with 5 pugspug bomb 2
will respond with 2 pugspug bomb 10
will respond wih 10 pugs