]> git.localhorst.tv Git - alttp.git/blobdiff - app/TwitchBot/TokenizedMessage.php
more classification
[alttp.git] / app / TwitchBot / TokenizedMessage.php
index 0e241d5cd804c490e72f761d01cba7ae70357e5d..82b4d473f1c0761c8b14ac36c2861681561fdabe 100644 (file)
@@ -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';