Class: Ellen::Handlers::Ping

Inherits:
Base
  • Object
show all
Defined in:
lib/ellen/handlers/ping.rb

Instance Attribute Summary

Attributes inherited from Base

#robot

Instance Method Summary collapse

Methods inherited from Base

actions, #call, inherited, #initialize, on

Constructor Details

This class inherits a constructor from Ellen::Handlers::Base

Instance Method Details

#ping(message) ⇒ Object



6
7
8
# File 'lib/ellen/handlers/ping.rb', line 6

def ping(message)
  robot.say message.body[-4..-1].gsub(/i/i, "i" => "o", "I" => "O")
end