Class: Ruboty::Handlers::Gominohi

Inherits:
Base
  • Object
show all
Defined in:
lib/ruboty/handlers/gominohi.rb

Instance Method Summary collapse

Instance Method Details

#gominohi(message) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/ruboty/handlers/gominohi.rb', line 6

def gominohi(message)
  date = Date.easy_parse(message[:date].strip)
  notification = ::Ruboty::Gominohi::Notification.new(date)
  str = notification.message

  message.reply(str) unless str.nil?
end