Sha256: 84c67880fdd8b3fc32767f2673b105025af85cf730b46182b7bbfb1713db01e9
Contents?: true
Size: 475 Bytes
Versions: 1
Compression:
Stored size: 475 Bytes
Contents
module Ellen module Handlers class GoogleImage < Base on /image (.+)/, description: "Search image from Google" do |message| if url = Ellen::GoogleImage::Client.new(query: message[1]).get say url end end on /animate (.+)/, description: "Search animation from Google" do |message| if url = Ellen::GoogleImage::Client.new(query: message[1], animated: true).get say url end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ellen-google_image-0.0.2 | lib/ellen/handlers/google_image.rb |