Sha256: 78f0c7a8dbdc455c20cd1a22bd4cc6178f256f80e39158365510ff9849d0d729
Contents?: true
Size: 307 Bytes
Versions: 1
Compression:
Stored size: 307 Bytes
Contents
class Stab < Linkbot::Plugin Linkbot::Plugin.register('stab', self, { :message => {:regex => /\/stab(?: ([\w\s]+))?/, :handler => :on_message} } ) def self.on_message(message, matches) name = matches[0] || "everyone in the face" "#{message.user_name} stabs #{name}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
protolink-0.2.8 | example/linkbot/plugins/stab.rb |