From: Daniel Karbach Date: Thu, 23 May 2024 19:14:12 +0000 (+0200) Subject: more spam shit X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;ds=sidebyside;h=9a606c41e6ae92d82dbace81a28b4e54ab10c9cb;p=alttp.git more spam shit --- diff --git a/app/TwitchBot/TokenizedMessage.php b/app/TwitchBot/TokenizedMessage.php index 7d7438a..f84527c 100644 --- a/app/TwitchBot/TokenizedMessage.php +++ b/app/TwitchBot/TokenizedMessage.php @@ -262,6 +262,7 @@ class TokenizedMessage { if ($this->containsRaw([ 'folgtjetzt', 'hatdeinenkanalgeraided', + 'isnowlivestreaming', 'stürmtdenladenmit', 'thanksfortheraid', 'vielendankfürdenraid', diff --git a/tests/Unit/TwitchBot/TokenizedMessageTest.php b/tests/Unit/TwitchBot/TokenizedMessageTest.php index 832b970..1380417 100644 --- a/tests/Unit/TwitchBot/TokenizedMessageTest.php +++ b/tests/Unit/TwitchBot/TokenizedMessageTest.php @@ -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());