X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FTwitchBot%2FTwitchChatBot.php;fp=app%2FTwitchBot%2FTwitchChatBot.php;h=831bf5ca4560acf7f09f909079d4dcbea787c324;hb=47d864b96b80abb11fdf8e2fdc8920e93916d5b9;hp=f43dba7a35e18ad39b74ed73a3662dcc0528e8cd;hpb=aff6a3e616b822dc6bff00b8b4acfee8b33f19a0;p=alttp.git diff --git a/app/TwitchBot/TwitchChatBot.php b/app/TwitchBot/TwitchChatBot.php index f43dba7..831bf5c 100644 --- a/app/TwitchBot/TwitchChatBot.php +++ b/app/TwitchBot/TwitchChatBot.php @@ -332,7 +332,7 @@ class TwitchChatBot extends TwitchBot { $this->getNotes($channel); $this->notes[$channel->id]['last_read'] = time(); ++$this->notes[$channel->id]['read_since_last_write']; - if (!$msg->isKnownBot() && !$msg->scanForSpam()) { + if (!ChatLog::isKnownBot($msg->nick) && !ChatLog::spammyText($msg->getText())) { $this->notes[$channel->id]['latest_msgs'][] = $msg->getText(); if (count($this->notes[$channel->id]['latest_msgs']) > 10) { array_shift($this->notes[$channel->id]['latest_msgs']);