From 33c037281846b9c6aa8f4cd29ba2945f96bb9d75 Mon Sep 17 00:00:00 2001 From: Wish <100239673+wish13yt@users.noreply.github.com> Date: Sun, 20 Oct 2024 08:02:03 -0500 Subject: [PATCH] modified: lb.py modified: update.py --- lb.py | 10 ++++++++-- update.py | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) 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: