Sha256: 6f21e938263a5aa3e72f25caf367e575f38dafda33d9cd02480fdc495c261afd

Contents?: true

Size: 276 Bytes

Versions: 11

Compression:

Stored size: 276 Bytes

Contents

# A plugin that tells robut to repeat whatever he's told.
class Robut::Plugin::Echo
  include Robut::Plugin

  desc "echo <message> - replies to the channel with <message>"
  match /^echo (.*)/, :sent_to_me => true do |phrase|
    reply(phrase) unless phrase.empty?
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
sclemmer-robut-0.6.3 lib/robut/plugin/echo.rb
sclemmer-robut-0.6.2 lib/robut/plugin/echo.rb
sclemmer-robut-0.6.1 lib/robut/plugin/echo.rb
sclemmer-robut-0.6.0 lib/robut/plugin/echo.rb
sclemmer-robut-0.5.4 lib/robut/plugin/echo.rb
sclemmer-robut-0.5.3 lib/robut/plugin/echo.rb
sclemmer-robut-0.5.2 lib/robut/plugin/echo.rb
robut-0.5.2 lib/robut/plugin/echo.rb
robut-0.5.1 lib/robut/plugin/echo.rb
robut-0.5.0 lib/robut/plugin/echo.rb
robut-0.4.0 lib/robut/plugin/echo.rb