- return $ggs > 2;
- }
-
- private function checkForGLHF(Channel $channel) {
- $notes = $this->getNotes($channel);
- $gls = 0;
- foreach ($notes['latest_msgs'] as $text) {
- if (ChatLog::classify($text) == 'gl') {
- ++$gls;
- }
- }
- return $gls > 2;
- }
-
- private function checkForGreeting(Channel $channel) {
- $notes = $this->getNotes($channel);
- $his = 0;
- foreach ($notes['latest_msgs'] as $text) {
- if (ChatLog::classify($text) == 'hi') {
- ++$his;
- }
- }
- return $his > 2;
- }
-
- private function checkForHype(Channel $channel) {
- $notes = $this->getNotes($channel);
- $hypes = 0;
- foreach ($notes['latest_msgs'] as $text) {
- if (ChatLog::classify($text) == 'hype') {
- ++$hypes;
- }
- }
- return $hypes > 2;
- }
-
- private function checkForLaughter(Channel $channel) {
- $notes = $this->getNotes($channel);
- $lulz = 0;
- foreach ($notes['latest_msgs'] as $text) {
- if (ChatLog::classify($text) == 'lol') {
- ++$lulz;
- }
- }
- return $lulz > 2;
- }
-
- private function checkForNumbers(Channel $channel) {
- $notes = $this->getNotes($channel);
- $numbers = 0;
- foreach ($notes['latest_msgs'] as $text) {
- if (is_numeric(trim($text))) {
- ++$numbers;
- }
- }
- return $numbers > 2;
- }
-
- private function checkForPog(Channel $channel) {
- $notes = $this->getNotes($channel);
- $pogs = 0;
- foreach ($notes['latest_msgs'] as $text) {
- if (ChatLog::classify($text) == 'pog') {
- ++$pogs;
- }
- }
- return $pogs > 2;
- }
-
- private function checkForSalute(Channel $channel) {
- $notes = $this->getNotes($channel);
- $o7s = 0;
- foreach ($notes['latest_msgs'] as $text) {
- if (ChatLog::classify($text) == 'o7') {
- ++$o7s;
- }
- }
- return $o7s > 2;