X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FTwitchBot%2FTokenizedMessage.php;fp=app%2FTwitchBot%2FTokenizedMessage.php;h=82b4d473f1c0761c8b14ac36c2861681561fdabe;hb=13ffde5b2abcf831af9c794044350737066c5933;hp=0e241d5cd804c490e72f761d01cba7ae70357e5d;hpb=6a1dfa72436b2f5e5b34485da7d7ef1053d89ccc;p=alttp.git diff --git a/app/TwitchBot/TokenizedMessage.php b/app/TwitchBot/TokenizedMessage.php index 0e241d5..82b4d47 100644 --- a/app/TwitchBot/TokenizedMessage.php +++ b/app/TwitchBot/TokenizedMessage.php @@ -234,7 +234,7 @@ class TokenizedMessage { $this->classification = 'thx'; } else if ($this->hasToken(['<3']) || $this->hasEmoteThatEndsWith(['herz', 'hug', 'love'])) { $this->classification = 'love'; - } else if ($this->hasTokenThatStartsWith(['wat', 'wtf']) || $this->hasEmoteThatStartsWith(['wat', 'wtf'])) { + } else if ($this->hasToken(['wat', 'wat?']) || $this->hasTokenThatStartsWith(['wtf']) || $this->hasEmoteThatEndsWith(['wat', 'wtf'])) { $this->classification = 'wtf'; } else if ($this->endsWithEmoteless('?')) { $this->classification = 'question';