lib/chatterbot/config.rb in chatterbot-0.9.1 vs lib/chatterbot/config.rb in chatterbot-0.9.2

- old
+ new

@@ -212,17 +212,16 @@ # # figure out what config file to load based on the name of the bot def config_file dest = working_dir - x = File.join(File.expand_path(dest), "#{botname}.yml") + File.join(File.expand_path(dest), "#{botname}.yml") end # # load in a config file def slurp_file(f) f = File.expand_path(f) - tmp = {} if File.exist?(f) File.open( f ) { |yf| tmp = YAML::load( yf )