Sha256: b13fee066454d38e3481449047b9e840e6edc8bbd85c3578f52459bf1837bd2a

Contents?: true

Size: 329 Bytes

Versions: 9

Compression:

Stored size: 329 Bytes

Contents

# Use this class to debug stuff as you 
# go along - e.g. dump events etc.
class DebugHandler < BirdGrinder::Base

  on_event :incoming_mention do
    logger.info ">> Mention from #{user} - #{options.inspect}"
  end
    
  on_event :incoming_direct_message do
    logger.info ">> DM from #{user} - #{options.inspect}"
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
birdgrinder-0.1.5 templates/debug_handler.erb
birdgrinder-0.1.4.0 templates/debug_handler.erb
birdgrinder-0.1.3.1 templates/debug_handler.erb
birdgrinder-0.1.3.0 templates/debug_handler.erb
birdgrinder-0.1.2.1 templates/debug_handler.erb
birdgrinder-0.1.2 templates/debug_handler.erb
birdgrinder-0.1.1.1 templates/debug_handler.erb
birdgrinder-0.1.1 templates/debug_handler.erb
birdgrinder-0.1.0.0 templates/debug_handler.erb