Module: Lobstersbot::PluggableConnection::ClassMethods

Defined in:
lib/lobstersbot/pluggable_connection.rb

Instance Method Summary collapse

Instance Method Details

#add_trigger(priority, regex, handler) ⇒ Object



23
24
25
# File 'lib/lobstersbot/pluggable_connection.rb', line 23

def add_trigger(priority, regex, handler)
  PluggableConnection.triggers << [priority, regex, handler]
end