public string chatWithPrelude(string input) { if (mindInstance == null) { return("Error: Mind not initialized"); } if (proactiveMode) { idleTime = 0; if (timer != null) { timer.Stop(); } } string output = ""; output = mindInstance.listenToInput(input); if (isSpeaking) { speak(output); } if (proactiveMode) { Random random = new Random(); idleTime = random.Next(15000, 30000); timer.Interval = idleTime; autoSpeakInput = output; timer.Start(); } return(output); }
public string chatWithPrelude(string input) { if (mindInstance == null) { return("Error: Mind not initialized"); } if (proactiveMode) { idleTime = 0; if (timer != null) { timer.Stop(); } } if (quantumRandomness) { mindInstance.quantumRandomness = true; } if (avoidLearnByRepeating) { mindInstance.avoidLearnByRepeating = true; } string output = ""; output = mindInstance.listenToInput(input); if (isSpeaking) { speak(output); } if (proactiveMode) { SetTimer(); autoSpeakInput = output; timer.Start(); } return(output); }