array_shift($this->notes[$channel->id]['latest_msgs']);
}
}
+ if ($this->isDirectedAtMe($msg->getText())) {
+ $this->notes[$channel->id]['wait_msgs'] = 0;
+ $this->notes[$channel->id]['wait_time'] = 0;
+ }
}
private function tagChannelWrite(Channel $channel) {
$this->notes[$channel->id]['wait_time'] = $this->randomWaitTime($channel);
}
+ private function isDirectedAtMe($raw_text) {
+ $text = strtolower($raw_text);
+ if (strpos($text, 'horstie') !== false) {
+ return true;
+ }
+ return false;
+ }
+
private $channels;
private $notes = [];