]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/ChatLog.php
refine hi classification
[alttp.git] / app / Models / ChatLog.php
index 79eab97debff1a56a6ee081efbdf59951f22a5d9..792e9e7a9b59c3aa212edf5b59786c7dfec6b6ae 100644 (file)
@@ -86,7 +86,7 @@ class ChatLog extends Model {
                if (Str::contains($rawText, ['haha', 'hehe', 'hihi', 'kekw', 'lol', 'lul', 'xd'])) {
                        return 'lol';
                }
-               if (Str::startsWith($rawText, ['ahoi', 'hallo', 'hello', 'hi', 'huhu']) || Str::endsWith($rawText, ['hi', 'wave'])) {
+               if (Str::startsWith($rawText, ['ahoi', 'hallo', 'hello', 'hi ', 'huhu']) || Str::endsWith($rawText, ['hi', 'wave'])) {
                        return 'hi';
                }
                if (Str::contains($rawText, ['pog', 'wow'])) {