]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/ChatLog.php
more classification
[alttp.git] / app / Models / ChatLog.php
index 41bdcc506653a1727e7e13af8f4cafab2df617be..6af158784247045dcd4c6c4a0e0fcdbbbe2f5f9f 100644 (file)
@@ -79,11 +79,13 @@ class ChatLog extends Model {
 
        public static function isKnownBot($nick) {
                return in_array(strtolower($nick), [
+                       'a_n_i_v',
                        'birrellthesquirrel',
                        'funtoon',
                        'nidbot2000',
                        'nightbot',
                        'pokemoncommunitygame',
+                       'sery_bot',
                        'speedgaming',
                        'starbase47',
                        'streamelements',
@@ -106,7 +108,7 @@ class ChatLog extends Model {
                $channel = Channel::firstWhere('twitch_chat', '=', $cname);
                if (!is_null($channel)) {
                        $this->channel()->associate($channel);
-                       if (now()->sub(5, 'minute')->isBefore($this->created_at)) {
+                       if (empty($this->twitch_category) && now()->sub(15, 'minute')->isBefore($this->created_at)) {
                                $this->twitch_category = $channel->twitch_category;
                        }
                }