Sha256: d57140fc6f4f69f176c0d5a14f724100ebdd56cd3016313c0837537499781d9a

Contents?: true

Size: 245 Bytes

Versions: 1

Compression:

Stored size: 245 Bytes

Contents

class Dumb < Linkbot::Plugin
    def self.on_message(message, matches) 
      "No, you're dumb"
    end

    Linkbot::Plugin.register('dumb', self,
      {
        :message => {:regex => /dumb|stupid/, :handler => :on_message}
      }
    )
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
protolink-0.2.8 example/linkbot/plugins/dumb.rb