]> git.localhorst.tv Git - alttp.git/blobdiff - app/TwitchBot/TwitchChatBot.php
log who sent manual random chats
[alttp.git] / app / TwitchBot / TwitchChatBot.php
index 442173d8c60c82228d66ffdd52e2b1ff5744ef07..92894262f3b108d42826f76238dca6c909146a94 100644 (file)
@@ -82,6 +82,9 @@ class TwitchChatBot extends TwitchBot {
                $log->channel()->associate($channel);
                if (is_object($text)) {
                        $log->origin()->associate($text);
+                       $log->category = $text->classification;
+               } else {
+                       $log->category = $this->getLastSpecialSent($channel);
                }
                $log->text = $actual_text;
                $log->save();