Sha256: c2f9d3e48d07689af17c8495e5691ae250d4076403c59643fa7c8df5db09d497
Contents?: true
Size: 358 Bytes
Versions: 5
Compression:
Stored size: 358 Bytes
Contents
respond(/pug me/i) do response = JSON.parse Net::HTTP.get(URI "http://pugme.herokuapp.com/random") say "<#{response["pug"]}>" end respond(/pug bomb( (\d+))?/i) do |message| count = message.match[2] || 5 response = JSON.parse Net::HTTP.get(URI "http://pugme.herokuapp.com/bomb?count=#{count}") response["pugs"].each do |pug| say "<#{pug}>" end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
boty-0.0.7 | script/pug.rb |
boty-0.0.6 | script/pug.rb |
boty-0.0.4 | script/pug.rb |
boty-0.0.3 | script/pug.rb |
boty-0.0.2 | script/pug.rb |