X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FChatLog.php;h=79eab97debff1a56a6ee081efbdf59951f22a5d9;hb=d2bba770693e1f85479725eb176818c416be414d;hp=943ce6e659e846effb274ba467c23ecfbd1470ff;hpb=6e3215622bf9f57efd9010268ad9e8ef9a913348;p=alttp.git diff --git a/app/Models/ChatLog.php b/app/Models/ChatLog.php index 943ce6e..79eab97 100644 --- a/app/Models/ChatLog.php +++ b/app/Models/ChatLog.php @@ -134,7 +134,8 @@ class ChatLog extends Model { } } - public static function spammyText($text) { + public static function spammyText($raw_text) { + $text = strtolower($raw_text); if (substr($text, 0, 1) == '!') { return true; } @@ -153,6 +154,9 @@ class ChatLog extends Model { if (strpos($text, 'followers') !== false) { return true; } + if (strpos($text, 'horstie') !== false) { + return true; + } if (strpos($text, 'promotion') !== false) { return true; } @@ -162,6 +166,12 @@ class ChatLog extends Model { 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; }