From 3147e2852506775463add1a05e76c8b4997fd884 Mon Sep 17 00:00:00 2001 From: Wish <100239673+wish13yt@users.noreply.github.com> Date: Sat, 19 Oct 2024 12:04:35 -0500 Subject: [PATCH] modified: lb.py --- lb.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/lb.py b/lb.py index 8288ec0..ae32a95 100644 --- a/lb.py +++ b/lb.py @@ -33,7 +33,7 @@ def cls(): code() if (command == "freakybob"): print("This requires an additional download of 5.42 KB.") - input("Are you fine with that? Close this if not.") + input("Are you fine with that? Close this if not. ") url = 'https://github.com/Freakybob-Team/lb/blob/main/freakybob.txt?raw=true' response = requests.get(url) file_Path = 'freakybob.txt' @@ -46,4 +46,15 @@ def cls(): print(fb.read()) fb.close() code() + if (command == "update"): + print("This requires an additional download of 569 bytes.") + input("Are you fine with that? Close this if not. ") + url = 'https://github.com/Freakybob-Team/lb/blob/main/lb.py?raw=true' + response = requests.get(url) + file_Path = 'lb.py' + response = requests.get(url) + if response.status_code == 200: + with open(file_Path, 'wb') as file: + file.write(response.content) + print('File downloaded successfully') code()