PatchBot/modules/Homepage.php
2021-03-14 00:23:45 +01:00

14 lines
355 B
PHP

<?php
class Homepage extends PatchBase {
function __construct() {
parent::__construct('Tomer Shvueli', 'Homepage', 'https://github.com/tomershvueli/homepage');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/tomershvueli/homepage/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>