class Logger < Nadoka::NDK_Bot def bot_initialize @log = [] end def on_privmsg(prefix, ch, msg) case msg.chomp when /\Alog\z/ @log.each do |l| send_notice(prefix.nick, l) end else @log << "#{Time.now.strftime('%H:%M')} [#{prefix.nick}] #{msg}" @log.shift if @log.length > 200 end end end明らかに現実逃避だ。