diff --git a/lb.py b/lb.py index 69b391a..068df34 100644 --- a/lb.py +++ b/lb.py @@ -69,8 +69,14 @@ def cls(): exec(open('update.py').read()) else: print('Failed to download file') - print("Bringing you back...") - code() + print("Trying another source...") + alturl = 'https://codeberg.org/Freakybob/lb/raw/branch/main/update.py' + response = requests.get(url) + file_Path = 'update.py' + with open(file_Path, 'wb') as file: + file.write(response.content) + print('File downloaded successfully') + exec(open('update.py').read()) if (command == "greg"): url = 'https://github.com/Freakybob-Team/lb/blob/main/greg.bat?raw=true' response = requests.get(url) diff --git a/update.py b/update.py index 71386fb..49d765f 100644 --- a/update.py +++ b/update.py @@ -21,7 +21,7 @@ file.write(response.content) print('File downloaded successfully') print("Done! Your LigmaBalls version has been updated.") -wantremove = input("Do you want to delete update.py? (Yes/No)") +wantremove = input("Do you want to delete update.py? (Yes/No) ") if (wantremove == "Yes"): os.remove("update.py") else: