Sha256: 082009e68da05aa2a8319427a7f7330dc450a4ac65ba96eb6f06fea2f62e8f7c
Contents?: true
Size: 367 Bytes
Versions: 2
Compression:
Stored size: 367 Bytes
Contents
class MadChatterExtensionExample < 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 end # ...otherwise, let other extensions have a chance at handling it end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mad_chatter-0.3.4 | templates/extensions/example.rb |
mad_chatter-0.3.3 | templates/extensions/example.rb |