respond(/ping/i) do say "pong" end respond(/echo (.*)$/i) do |message| say message.match[1] end respond(/time/i) do say "reeepitaaa: #{Time.now}" end