mirror of
https://github.com/danog/AltervistaUserBot.git
synced 2024-11-30 04:19:15 +01:00
Merge branch 'master' of https://github.com/danog/AltervistaUserBot
This commit is contained in:
commit
fef147d8df
3
bot.php
3
bot.php
@ -12,12 +12,11 @@ $remote = 'danog/AltervistaUserbot';
|
||||
$branch = 'master';
|
||||
$url = "https://raw.githubusercontent.com/$remote/$branch";
|
||||
|
||||
|
||||
$version = file_get_contents("$url/.version?v=new");
|
||||
if (!file_exists(__DIR__.'/.version') || file_get_contents(__DIR__.'/.version') !== $version) {
|
||||
foreach (explode("\n", file_get_contents("$url/files?v=new")) as $file) {
|
||||
if ($file) {
|
||||
copy("$url/$file?v=new", __DIR__."/$file");
|
||||
copy("$url/$file?v=new", __DIR__."/$file");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user