Added console command handling to botcmd.py and used that to save messages on quit