Sha256: 3e745460cffee247910b983589b474f338ed0f4ca46c871ff150378c26c2fd32

Contents?: true

Size: 202 Bytes

Versions: 2

Compression:

Stored size: 202 Bytes

Contents

module Hibot
  class Giphy
    include Cinch::Plugin
    include API::Giphy

    match /gsearch/, method: :query

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hibot-0.0.4 lib/hibot/plugins/giphy.rb
hibot-0.0.2 lib/hibot/plugins/giphy.rb