Architecture of a bot