Sha256: b40a8dff6ed9884b34be3056c6e3fe1c31e75d3c39f7e8bfd37e7c8b765056df
Contents?: true
Size: 958 Bytes
Versions: 3
Compression:
Stored size: 958 Bytes
Contents
# # Simple Mad Chatter Extensions # # You can add as many extensions as you want in this file using the # simple extension syntax. For more complicated extensions, add your # classes to the extensions directory. # # Example: # # on_message /hey andrew: (.+)/ do |regex_capture| # send_status_message 'Someone is talking to andrew' # end # #nothing in this file will work, now that we have multiple channels, sorry!! # on_message %r{^/youtube http://youtu.be/(.*)$} do |youtube_id| # send_message "<iframe width='560' height='315' src='http://www.youtube.com/embed/#{youtube_id}' frameborder='0' allowfullscreen></iframe>" # stop_message_handling # end # # on_message %r{^/alert (.*)$} do |alert_message| # send_action 'show_alert', alert_message # stop_message_handling # end # # on_message %r{^/earthquake$} do # send_status_message 'Someone has just caused an earthquake!' # send_action 'earthquake' # stop_message_handling # end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mad_chatter-0.3.2 | templates/extensions.rb |
mad_chatter-0.3.1 | templates/extensions.rb |
mad_chatter-0.3.0 | templates/extensions.rb |