Sha256: 46377c887e16a620042f40dca064134fbd8e10d3b49ee23e4d512ec6c219add9
Contents?: true
Size: 444 Bytes
Versions: 2
Compression:
Stored size: 444 Bytes
Contents
desc "pug me", I18n.t("scripts.pug_me") respond(/pug me/i) do response = JSON.parse Net::HTTP.get(URI "http://pugme.herokuapp.com/random") say "<#{response["pug"]}>" end desc "pug bomb X", I18n.t("scripts.pug_bomb") 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
boty-0.0.14 | script/pug.rb |
boty-0.0.13 | script/pug.rb |