Sha256: 41f6cb6b65d97828d6dc5bb8f25a46255e255f8ff06b48cc1460e47305984960

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

desc 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.12 script/pug.rb
boty-0.0.11 script/pug.rb