PatchBot/modules/UptimeKuma.php
2023-11-01 17:47:39 +01:00

14 lines
339 B
PHP

<?php
class UptimeKuma extends PatchBase {
function __construct() {
parent::__construct('Louis Lam', 'Uptime Kuma', 'https://uptime.kuma.pet/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/louislam/uptime-kuma/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>