# File rbot/keywords.rb, line 68 def scan Dir["#{@bot.botclass}/keywords/*"].each {|f| IO.foreach(f) {|line| if(line =~ /^(.*?)<=(is|are)?=?>(.*)$/) lhs = $1 mhs = $2 rhs = $3 mhs = "is" unless mhs rhs = Keyword.escape rhs values = rhs.split("<=or=>") @statickeywords[lhs] = Keyword.new(mhs, values) end } } end