Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6f99cffb2b
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (10 sloc) 0.467 kb
#!/usr/bin/env ruby
%w(rubygems happy_fun_time_bot httparty).each {|r| require r }
# For hipchat, your :jid, :room and :password are available at https://www.hipchat.com/account/xmpp
@bot = HappyFunTimeBot.new(:jid => "xxxxx@chat.hipchat.com", :nick => "ImageBot", :room => "your_room@conf.hipchat.com", :password => "xxx")
# let's find some images!
@bot.add_responder('findimage') do |from, args|
url = Google.get_image_url(args)
"Look! #{url}"
end
@bot.run!
Jump to Line
Something went wrong with that request. Please try again.