Class: Lita::Handlers::Snack

Inherits:
Handler
  • Object
show all
Defined in:
lib/lita/handlers/snack.rb

Constant Summary collapse

SNACKS =
[
  'Om nom nom!',
  'That is very nice of you!',
  'Oh thanks! Have a cookie yourself!',
  'Thank you very much!',
  'Thanks for the treat!'
]

Instance Method Summary collapse

Instance Method Details

#snack(response) ⇒ Object



15
16
17
# File 'lib/lita/handlers/snack.rb', line 15

def snack(response)
  response.reply SNACKS.sample
end