From: Daniel Karbach Date: Sat, 12 Jul 2025 20:35:22 +0000 (+0200) Subject: spam classification X-Git-Url: http://git.localhorst.tv/?a=commitdiff_plain;h=a290a56e987fa136630b7cba1dc257d57bfd165e;p=alttp.git spam classification --- diff --git a/app/TwitchBot/TokenizedMessage.php b/app/TwitchBot/TokenizedMessage.php index ca51451..0ca84b0 100644 --- a/app/TwitchBot/TokenizedMessage.php +++ b/app/TwitchBot/TokenizedMessage.php @@ -276,6 +276,7 @@ class TokenizedMessage { 'isnowlivestreaming', 'stürmtdenladenmit', 'thanksfortheraid', + 'twitchtv', 'verschwindetfürneweileindenlurk', 'vielendankfürdenraid', 'willkommenaufstarbase47', diff --git a/tests/Unit/TwitchBot/TokenizedMessageTest.php b/tests/Unit/TwitchBot/TokenizedMessageTest.php index 3678dcc..ad62311 100644 --- a/tests/Unit/TwitchBot/TokenizedMessageTest.php +++ b/tests/Unit/TwitchBot/TokenizedMessageTest.php @@ -87,6 +87,7 @@ class TokenizedMessageTest extends TestCase { $this->assertTrue(TokenizedMessage::fromString('just 50€')->isSpammy()); $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('go watch twitch.tv/holysmoke')->isSpammy()); $this->assertTrue(TokenizedMessage::fromString('yayklaygaming verschwindet für \'ne Weile in den Lurk. Cool, dass Du vorbeigeschaut hast xallggCheers PogChamp')->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());