The core pubbot code