# File lib/rbot/config.rb, line 404
    def save
      begin
        debug "Writing new conf.yaml ..."
        File.open("#{@@bot.botclass}/conf.yaml.new", "w") do |file|
          savehash = {}
          @@config.each { |key, val|
            savehash[key.to_s] = val
          }
          file.puts savehash.to_yaml
        end
        debug "Officializing conf.yaml ..."
        File.rename("#{@@bot.botclass}/conf.yaml.new",
                    "#{@@bot.botclass}/conf.yaml")
      rescue => e
        error "failed to write configuration file conf.yaml! #{$!}"
        error "#{e.class}: #{e}"
        error e.backtrace.join("\n")
      end
    end