lib/botabot/plugin.rb
# reply to room, to sender of message or to sender of PM
reply to room, to sender of message or to sender of PM
reply to room to sender of message or to sender of PM
def reply(message)
      if sender.eql?(nick)
        BotaBot.logger.debug("Replying to '#{nick}'. Message: #{message}")
        muc.say(message, sender)
      elsif sender.eql?(muc)
        BotaBot.logger.debug("Replying to room. Message: #{message}")
        muc.say(message)
      else
        raise NotImplementedError
      end
    end
def reply ( message ) if sender . eql? ( nick ) BotaBot . logger . debug ( "Replying to '#{nick}'. Message: #{message}" ) muc . say ( message , sender ) elsif sender . eql? ( muc ) BotaBot . logger . debug ( "Replying to room. Message: #{message}" ) muc . say ( message ) else raise NotImplementedError end end
reply to room, to sender of message or to sender of PM
reply to room to sender of message or to sender of PM
# reply to person in MUC # reply to room # reply to person not in MUC
message
<not_specific>