bot code from jsconf