PatchBot/modules/OpenBVE.php
2023-02-02 21:17:09 +01:00

14 lines
346 B
PHP

<?php
class OpenBVE extends PatchBase {
function __construct() {
parent::__construct('OpenBVE Project', 'OpenBVE', 'https://openbve-project.net/download/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/leezer3/OpenBVE/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>