bot = $bot; $cmd->channel = $channel; $cmd->config = $config; return $cmd; } public abstract function execute($args); protected function getBooleanConfig($name, $default = false) { return array_key_exists($name, $this->config) ? $this->config[$name] : $default; } protected function messageChannel($str) { $msg = IRCMessage::privmsg($this->channel->twitch_chat, $str); $this->bot->sendIRCMessage($msg); } protected $bot; protected $channel; protected $config; } ?>