Add croc
This commit is contained in:
parent
bae910aa87
commit
f723fe30ba
1 changed files with 14 additions and 0 deletions
14
modules/Croc.php
Normal file
14
modules/Croc.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
class Croc extends PatchBase {
|
||||
function __construct() {
|
||||
parent::__construct('Zack', 'croc', 'https://schollz.com/software/croc6');
|
||||
}
|
||||
function check() : bool {
|
||||
if ($this->fetch('https://api.github.com/repos/schollz/croc/releases/latest', true))
|
||||
return $this->parse_json('tag_name');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue