Implement persistent bot state, in the form of JSON