privmsg (ExcusePlugin)

    # File rbot/plugins/excuse.rb, line 7
      def privmsg(m)
        begin
          host = Net::Telnet::new({
            "Host"       => "bofh.engr.wisc.edu",
            "Timeout"    => 3,
            "Port"       => 666
          })
          if(host)
            line = host.waitfor(/^Your excuse is: /)
            if(line)
              line.each_line {|l|
                if(l =~ /^Your excuse is: (.*)$/)
                  m.reply $1
                end
              }
            else
              m.reply "the excuse server is down :("
            end
          else
            m.reply "the excuse server is down :("
          end
        rescue TimeoutError, ErrNo::ECONREFUSED
          m.reply "the excuse server is unreachable :("
          return
        end
      end