+ private function performAdlib(Channel $channel) {
+ $db = $this->getChatlibDatabase($channel);
+ $text = $db->generate();
+ $this->tagChannelWrite($channel);
+ $this->sendIRCMessage(IRCMessage::privmsg($channel->twitch_chat, $text));
+ $log = new ChatBotLog();
+ $log->channel()->associate($channel);
+ $log->category = 'adlib';
+ $log->text = $text;
+ $log->save();
+ }
+