public function __construct($config) { parent::__construct($config); if (isset($_SESSION['bot']) === true) { $this->botId = $_SESSION['bot']; } }