Updated to new BotConnector class.