Skip to content

Commit

Permalink
space
Browse files Browse the repository at this point in the history
  • Loading branch information
karyeet authored Jun 20, 2022
1 parent d62a0a0 commit 0a74a67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ fetch("https://api.github.com/repos/"+GITHUB_REPO+"/releases")
for(let i = 0; i < json.length; ++i ){ // (json[i].prerelease && INCLUDE_PRERELEASES)
if(json[i].assets[0] && json[i].assets[0].browser_download_url){ //if dl exists
if(!json[i].prerelease || INCLUDE_PRERELEASES){ //if not prerelease or if allow prerelease
console.log("Found version" + json[i].tag_name +" attempting to download...")
console.log("Found version " + json[i].tag_name +" attempting to download...")
download(json[i].assets[0].browser_download_url, "./Lavalink.jar", startLavalink)
break;
}else{
console.log("Skipping version" + json[i].tag_name + " because it is a prerelease and PRERELEASES is set to false.")
console.log("Skipping version " + json[i].tag_name + " because it is a prerelease and PRERELEASES is set to false.")
}
}else{
console.log("Skipping version" + json[i].tag_name + " because no download is available.")
console.log("Skipping version " + json[i].tag_name + " because no download is available.")
}
}

Expand Down

0 comments on commit 0a74a67

Please sign in to comment.