]> git.localhorst.tv Git - alttp.git/commitdiff
more spam shit
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 23 May 2024 19:14:12 +0000 (21:14 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 23 May 2024 19:14:12 +0000 (21:14 +0200)
app/TwitchBot/TokenizedMessage.php
tests/Unit/TwitchBot/TokenizedMessageTest.php

index 7d7438a8aba073cf511bad64ef0e56eba3f55ab0..f84527c5012ffd1e538163f5599797f1d40a5f9b 100644 (file)
@@ -262,6 +262,7 @@ class TokenizedMessage {
                if ($this->containsRaw([
                        'folgtjetzt',
                        'hatdeinenkanalgeraided',
+                       'isnowlivestreaming',
                        'stürmtdenladenmit',
                        'thanksfortheraid',
                        'vielendankfürdenraid',
index 832b9702cf2a345b82023f022bc592d4b157cdaa..1380417530ebe546cad63378aa2a41f04b13c587 100644 (file)
@@ -88,6 +88,7 @@ class TokenizedMessageTest extends TestCase {
                $this->assertTrue(TokenizedMessage::fromString('hello would you like some followers?')->isSpammy());
                $this->assertTrue(TokenizedMessage::fromString('get view ers for free')->isSpammy());
 
+               $this->assertTrue(TokenizedMessage::fromString('XallGG is now live! Streaming The Legend of Zelda: A Link to the Past: Casual Boots Seed zum Spaß/Practice')->isSpammy());
                $this->assertTrue(TokenizedMessage::fromString('also bitte, horstie')->isSpammy());
 
                $this->assertTrue(TokenizedMessage::fromString('hey maengi, vielen dank für den raid')->isSpammy());