Class: ILoveYouHandler
- Inherits:
-
Lokii::Handler
- Object
- Lokii::Handler
- ILoveYouHandler
- Defined in:
- lib/lokii/handlers/i_love_you_handler.rb
Instance Attribute Summary
Attributes inherited from Lokii::Handler
Instance Method Summary collapse
Methods inherited from Lokii::Handler
#complete, #halt, #handle, #initialize, #reply
Constructor Details
This class inherits a constructor from Lokii::Handler
Instance Method Details
#process ⇒ Object
2 3 4 5 |
# File 'lib/lokii/handlers/i_love_you_handler.rb', line 2 def process Lokii::Logger.debug "Processing message with the I love you handler" reply "I love you too" and complete if [:text].downcase == "i love you" || [:text].downcase == "i love u" end |