lib/botfly/responder/message_responder.rb in botfly-0.1.1 vs lib/botfly/responder/message_responder.rb in botfly-0.2.1

- old
+ new

@@ -1,21 +1,20 @@ -require 'forwardable' module Botfly class MessageResponder < Responder extend Forwardable def setup_instance_variables(params) - Botfly.logger.debug(" RSP: MessageResponder setting up instance variables") + Botfly.logger.debug("RSP: MessageResponder setting up instance variables") @message = params[:message] @body = @message.body @chat_state = @message.chat_state @subject = @message.subject @type = @message.type @from = @message.from @to = @message.to end def reply(text) - Botfly.logger.debug(" RSP: MessageResponder#reply called") + Botfly.logger.debug("RSP: MessageResponder#reply called") msg = Jabber::Message.new(@from, text) msg.type = :chat @client.send(msg) end end \ No newline at end of file