Sha256: ce42702733cb2e0738e9e6555dbefc7e48e089172b7fb625cf6e9a02e3901d58

Contents?: true

Size: 219 Bytes

Versions: 11

Compression:

Stored size: 219 Bytes

Contents

# A simple plugin that replies with "pong" when messaged with ping
class Robut::Plugin::Ping
  include Robut::Plugin

  desc "ping - responds 'pong'"
  match /^ping$/, :sent_to_me => true do
    reply("pong")
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

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