Sha256: caeb2e7ca4cb1ae6a59135c04f69c05d5edd7a02b9ee9c250bf24768aaf2dffc

Contents?: true

Size: 420 Bytes

Versions: 9

Compression:

Stored size: 420 Bytes

Contents

# I dont think this works anymore

class Example
  # include MadChatter::Extension
  
  def handle(message)
    if message.text == 'show me an example'
      send_status_message "#{message.username} really wants an example"
      send_message 'I said...I want an example!!!'
      stop_message_handling   # and don't let any other extensions handle it
    else
      # let other extensions handle it
    end
  end
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mad_chatter-0.2.9 templates/extensions/example.rb
mad_chatter-0.2.8 templates/extensions/example.rb
mad_chatter-0.2.7 templates/extensions/example.rb
mad_chatter-0.2.6 templates/extensions/example.rb
mad_chatter-0.2.5 templates/extensions/example.rb
mad_chatter-0.2.4 templates/extensions/example.rb
mad_chatter-0.2.3 templates/extensions/example.rb
mad_chatter-0.2.1 templates/extensions/example.rb
mad_chatter-0.2.0 templates/extensions/example.rb