lib/sinbotra/bot.rb in sinbotra-0.1.5 vs lib/sinbotra/bot.rb in sinbotra-0.1.6

- old
+ new

@@ -25,9 +25,13 @@ def receive(provider, msg) handler = @handlers[provider.to_sym] Sinbotra::Config.logger.debug("MESSAGE DEBUG:\n" + msg.inspect) if ENV["DEBUG"] handler.handle_message(msg) end + + def handle_action(action_name, provider, handler, opts={}) + handler.handle_action(action_name, opts) + end end include SuckerPunch::Job def perform(provider, msg)