public function prompt_read_email_subject($message) { if (Prompt::MatchAnswer(Prompt::$Yes, $message)) { echo "Prompt Response: Yes\n"; $responses = array("Okay. Downloading emails.", "Sure thing. Give me a second to fetch your emails", "Please wait while I load your emails", "Sure. Downloading your emails now."); if ($this->speak) { TTS::Speak($responses); } $this->read_new_email_subject(); Prompt::Clear(); shell_exec("sudo /etc/init.d/SAM stopquitely"); } elseif (Prompt::MatchAnswer(Prompt::$No, $message)) { //$Prompt = Prompt::Get(); echo "Prompt Response: No\n"; $responses = array("Okay", "Dont forget to read them later", "Ok just call me if you need anything else", "Great! i cant read properly anyway"); if ($this->speak) { TTS::Speak($responses); } Prompt::Clear(); shell_exec("sudo /etc/init.d/SAM listenquitely"); } else { echo "Not the answer im looking for!"; } }