PatchBot/modules/Drone.php
2020-04-04 18:58:09 +02:00

14 lines
297 B
PHP

<?php
class Drone extends PatchBase {
function __construct() {
parent::__construct('Drone.IO', 'Drone', 'https://drone.io/');
}
function check() : bool {
if ($this->fetch('https://api.github.com/repos/drone/drone/tags', true))
return $this->parse_json('name');
return false;
}
}
?>