From e4469ae5a19e08928952553a60fbc4da39ca6adb Mon Sep 17 00:00:00 2001 From: Wish <100239673+wish13yt@users.noreply.github.com> Date: Sat, 19 Oct 2024 13:58:47 -0500 Subject: [PATCH] new file: .gitignore deleted: greg.bat modified: lb.py --- .gitignore | 1 + greg.bat | 18 ------------------ lb.py | 19 ++++++++++++++++++- 3 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 .gitignore delete mode 100644 greg.bat diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1ba9b7c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +easyexec/ \ No newline at end of file diff --git a/greg.bat b/greg.bat deleted file mode 100644 index 7715713..0000000 --- a/greg.bat +++ /dev/null @@ -1,18 +0,0 @@ -@echo off -setlocal - -set "imageUrl=https://f.feridinha.com/LqRkS.jpg" -set "desktopPath=%USERPROFILE%\Desktop\greg.jpg" - -powershell -command "Invoke-WebRequest -Uri '%imageUrl%' -OutFile '%desktopPath%'" - -if exist "%desktopPath%" ( - for /L %%i in (1,1,0) do ( - copy "%desktopPath%" "%USERPROFILE%\Desktop\rowley_%%%%i.jpg" - ) -) else ( - echo greg wasen't feeling well today :(. -) - -echo greg in a box -pause \ No newline at end of file diff --git a/lb.py b/lb.py index 993ef19..06b24c2 100644 --- a/lb.py +++ b/lb.py @@ -94,7 +94,24 @@ def cls(): print("Welcome! Packing is a package manager for LigmaBalls.") print("This desert is very dry.. Upload something with the link below!") print("https://github.com/Freakybob-Team/packign") - code() + print("Current options:") + print("easyexec") + choice = input("What package would you like to download?") + if (choice == "easyexec"): + url = 'https://github.com/Freakybob-Team/packign/blob/main/easyexec/launch.bat?raw=true' + response = requests.get(url) + file_Path = 'easyexec/launch.bat' + if response.status_code == 200: + os.mkdir("easyexec") + with open(file_Path, 'wb') as file: + file.write(response.content) + print('File downloaded successfully') + file.close() + code() + else: + print('Failed to download file') + print("Bringing you back...") + code() if (command == "ping"): server = "google.com" try: