Class: Spunk::Processor::Ping

Inherits:
Object
  • Object
show all
Defined in:
lib/spunk/ping_parser.rb

Instance Method Summary collapse

Instance Method Details

#call(bot, origin, command, parameters) ⇒ Object



4
5
6
7
8
# File 'lib/spunk/ping_parser.rb', line 4

def call(bot, origin, command, parameters)
  if command =~ /^PING$/
    bot.send_message("PONG :#{parameters}")
  end
end