return;
}
$text = $this->contextualMsg($channel);
- if (!$text) $text = $this->randomMsg($channel);
+ if (!$text) $text = $this->randomChat($channel);
if (!$text) return;
$this->tagChannelWrite($channel);
$this->sendIRCMessage(IRCMessage::privmsg($channel->twitch_chat, $text));
$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']);