0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Lita handler for pug bombs
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

>= 2.0
 Project Readme

lita-pugbomb

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.

Installation

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

gem "lita-pugbomb"

Usage

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

Optional MAX_PUGS environment variable

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 pugs
    • pug bomb 2 will respond with 2 pugs
    • pug bomb 10 will respond wih 3 pugs
  • Without MAX_PUGS value

    • pug bomb will respond with 5 pugs
    • pug bomb 2 will respond with 2 pugs
    • pug bomb 10 will respond wih 10 pugs