added the bot code