Make root an argument of the bot's constructor.