Sha256: 5e388b505d1a08d21f07f84b12a7a7fa95fc5c837297e4011f9e87133b47a559
Contents?: true
Size: 424 Bytes
Versions: 3
Compression:
Stored size: 424 Bytes
Contents
# this definitely doesnt work 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mad_chatter-0.3.2 | templates/extensions/example.rb |
mad_chatter-0.3.1 | templates/extensions/example.rb |
mad_chatter-0.3.0 | templates/extensions/example.rb |