So @passcod added the ability JavaScript variables to be persistent across resets by storing them in the DB and loading them again.
We could go a bit further than just the attacks
and attack_results
arrays.
Consider LOLcryption as a JavaScript library that extends xbot.
It could be possible to store the LOLcryption.js file in the database as a dynamically added JS libary.