Class: Hibot::Giphy

Inherits:
Object
  • Object
show all
Includes:
API::Giphy, Cinch::Plugin
Defined in:
lib/hibot/plugins/giphy.rb

Constant Summary

Constants included from API::Giphy

API::Giphy::URI_REGEX, API::Giphy::WS_URL

Instance Method Summary collapse

Methods included from API::Giphy

#search

Instance Method Details

#query(m) ⇒ Object



8
9
10
11
# File 'lib/hibot/plugins/giphy.rb', line 8

def query(m)
  result = search(m.message)
  m.reply result
end