def run()
puts "First time rbot configuration wizard"
puts "===================================="
puts "This is the first time you have run rbot with a config directory of:"
puts @bot.botclass
puts "This wizard will ask you a few questions to get you started."
puts "The rest of rbot's configuration can be manipulated via IRC once"
puts "rbot is connected and you are auth'd."
puts "-----------------------------------"
return unless @questions
@questions.sort{|a,b| a.order <=> b.order }.each do |q|
puts q.desc
begin
print q.key.to_s + " [#{q.to_s}]: "
response = STDIN.gets
response.chop!
unless response.empty?
q.set_string response, false
end
puts "configured #{q.key} => #{q.to_s}"
puts "-----------------------------------"
rescue ArgumentError => e
puts "failed to set #{q.key}: #{e.message}"
retry
end
end
end