Sha256: b3c4e9713e4756749b8e4ff21dc129d2c6a36565c8dde85ae204b03be861aae9

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

desc "pug me", I18n.t("scripts.pug_me")
command(/pug me/i) do
  response = http.get "http://pugme.herokuapp.com/random"
  say "<#{response['pug']}>"
end

desc "pug bomb X", I18n.t("scripts.pug_bomb")
command(/pug bomb( \d+)?/i) do |count|
  count = (count || "5").strip
  if count.to_i > 5
    count = "5"
    say "wow! so many pugs! sendind 5 instead."
  end
  response = http.get "http://pugme.herokuapp.com/bomb", count: count
  response["pugs"].each do |pug| say "<#{pug}>" end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
boty-0.1.1 script/pug.rb