lib/chatterbot/bot.rb in chatterbot-0.6.3 vs lib/chatterbot/bot.rb in chatterbot-0.6.5
- old
+ new
@@ -27,14 +27,14 @@
if reset_bot?
reset_since_id
update_config
puts "Reset to #{@config[:since_id]}"
exit
- else
+ else
# update config when we exit
at_exit do
raise $! if $!
- update_config
+ update_config_at_exit
end
end
end
end
end