}
}
- public static function spammyText($text) {
+ public static function spammyText($raw_text) {
+ $text = strtolower($raw_text);
if (substr($text, 0, 1) == '!') {
return true;
}
if (strpos($text, 'followers') !== false) {
return true;
}
+ if (strpos($text, 'horstie') !== false) {
+ return true;
+ }
if (strpos($text, 'promotion') !== false) {
return true;
}
if (strpos($text, 'view ers') !== false) {
return true;
}
- if (strpos($text, 'vielen Dank für den Raid') !== false) {
+ if (strpos($text, 'vielen dank für den raid') !== false) {
return true;
}
- if (strpos($text, 'Willkommen auf Starbase 47') !== false) {
+ if (strpos($text, 'willkommen auf starbase 47') !== false) {
return true;
}
return false;
return;
}
$text = $this->contextualMsg($channel);
- if (!$text) $text = $this->randomMsg($channel);
+ if (!$text) $text = $this->randomChat($channel);
if (!$text) return;
$this->tagChannelWrite($channel);
$this->sendIRCMessage(IRCMessage::privmsg($channel->twitch_chat, $text));