<(((º>", "@}~}~~~", "(>'.')> (>'.')> (>'.')> ", "\(^-^)/", "you've been at this awhile; perhaps it's time for a walk outside?" ); // grab user sayings $userSayings = Config::getOption("sayings"); if (is_array($userSayings)) { $sayings = array_merge($sayings, $userSayings); } // i just didn't want to indent the crap above $this->sayings = $sayings; } /** * Randomly prints a saying after the generate is complete */ public function say() { // set a color $colors = array("ok","options","info","warning"); $randomNumber = rand(0,count($colors)-1); $color = (isset($colors[$randomNumber])) ? $colors[$randomNumber] : "desc"; // set a 1 in 3 chance that a saying is printed $randomNumber = rand(0,(count($this->sayings)-1)*3); if (isset($this->sayings[$randomNumber])) { Console::writeLine("<".$color.">".$this->sayings[$randomNumber]."..."); } } }