Class: Ruboty::Handlers::Tiqav

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

Instance Method Summary collapse

Instance Method Details

#tiqav(message = {}) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/ruboty/handlers/tiqav.rb', line 8

def tiqav(message = {})
  keyword = message[:keyword]
  url = generate(keyword)

  return_message = url ? url : 'Cound not find tiqav image'

  message.reply(return_message)
end