if (Str::contains($rawText, ['haha', 'hehe', 'hihi', 'kekw', 'lol', 'lul', 'xd'])) {
return 'lol';
}
- if (Str::startsWith($rawText, ['ahoi', 'hallo', 'hello', 'hi', 'huhu']) || Str::endsWith($rawText, ['hi', 'wave'])) {
+ if (Str::startsWith($rawText, ['ahoi', 'hallo', 'hello', 'hi ', 'huhu']) || Str::endsWith($rawText, ['hi', 'wave'])) {
return 'hi';
}
if (Str::contains($rawText, ['pog', 'wow'])) {
}
}
- 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) {
+ return true;
+ }
+ if (strpos($text, 'willkommen auf starbase 47') !== false) {
+ return true;
+ }
return false;
}