lib/boty/session.rb in boty-0.0.7 vs lib/boty/session.rb in boty-0.0.9

- old
+ new

@@ -11,10 +11,14 @@ login bot = initialize_bot(&block) stablish_connection do |ws| ws.on :message do |event| - on_message event, bot + begin + on_message event, bot + rescue StandardError => e + logger.error "Message #{event} could not be processed. #{e.message}" + end end end end end