# File rbot/config.rb, line 9 def initialize(bot) super(false) @bot = bot # some defaults self["SERVER"] = "localhost" self["PORT"] = "6667" self["NICK"] = "rbot" self["USER"] = "gilbertt" self["LANGUAGE"] = "english" self["SAVE_EVERY"] = "60" self["KEYWORD_LISTEN"] = false if(File.exist?("#{@bot.botclass}/conf.rbot")) IO.foreach("#{@bot.botclass}/conf.rbot") do |line| next if(line =~ /^\s*#/) if(line =~ /(\S+)\s+=\s+(.*)$/) self[$1] = $2 if($2) end end end end