X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FTwitchBot%2FTwitchChatBot.php;h=92894262f3b108d42826f76238dca6c909146a94;hb=8645b77ea2dc402f0265e1c8022ba18302506ca1;hp=442173d8c60c82228d66ffdd52e2b1ff5744ef07;hpb=907f392f8d2fbadb3f53a277cc90ae080da6d476;p=alttp.git diff --git a/app/TwitchBot/TwitchChatBot.php b/app/TwitchBot/TwitchChatBot.php index 442173d..9289426 100644 --- a/app/TwitchBot/TwitchChatBot.php +++ b/app/TwitchBot/TwitchChatBot.php @@ -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();