template/project/script/ping.rb in boty-0.0.17.1 vs template/project/script/ping.rb in boty-0.1.0
- old
+ new
@@ -1,11 +1,11 @@
-respond(/ping/i) do
+command(/ping/i) do
say "pong"
end
-respond(/echo (.*)$/i) do |message|
+command(/echo (.*)$/i) do |message|
say message.match[1]
end
-respond(/time/i) do
+command(/time/i) do
say "reeepitaaa: #{Time.now}"
end