From 8bbb5333fe9e6d4f2794e0239a76bebef94cea28 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Wed, 13 Nov 2024 12:07:31 +0100 Subject: [PATCH] exclude horstie and localhorst chats from other channels this is to prevent drawing game strings from appearing as random chats --- app/Models/Channel.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Models/Channel.php b/app/Models/Channel.php index 72c3e5e..b4f0c11 100644 --- a/app/Models/Channel.php +++ b/app/Models/Channel.php @@ -56,6 +56,8 @@ class Channel extends Model { $source = $this->getChatSetting('source', 'any'); if (in_array($source, ['catchan', 'chan'])) { $query->where('channel_id', $this->id); + } else if ($this->twitch_chat != '#horstiebot') { + $query->whereNotIn('channel_id', [52, 53]); } if (in_array($source, ['cat', 'catchan'])) { $query->where('twitch_category', $this->twitch_category); -- 2.39.2