From f28a0f0fa2893badbb1efc5e14417ac7263c8e3c Mon Sep 17 00:00:00 2001 From: Wish <100239673+wish13yt@users.noreply.github.com> Date: Sat, 19 Oct 2024 12:36:52 -0500 Subject: [PATCH] deleted: greg.bat modified: lb.py --- greg.bat | 18 ------------------ lb.py | 12 ++++++------ 2 files changed, 6 insertions(+), 24 deletions(-) delete mode 100644 greg.bat 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 c6bb8af..eec0993 100644 --- a/lb.py +++ b/lb.py @@ -1,5 +1,6 @@ import os import requests +import subprocess def code(): def cls(): os.system('cls' if os.name=='nt' else 'clear') @@ -27,7 +28,7 @@ def cls(): print("update") print("Updates LigmaBalls") print("greg") - print("Changes your wallpaper to Greg Heffley") + print("Adds Greg Heffley to your desktop") code() if (command == "credits"): print("Wish made the intial 1.0 version! He also made freakysay and the first version of help.") @@ -69,18 +70,17 @@ def cls(): print("Bringing you back...") code() if (command == "greg"): - input("WARNING: THIS WILL REPLACE YOUR BACKGROUND WITH GREG HEFFLEY. IF YOU ARE NOT OKAY WITH THAT, CLOSE THIS PROGRAM. ") url = 'https://github.com/Freakybob-Team/lb/blob/main/greg.bat?raw=true' response = requests.get(url) file_Path = 'greg.bat' - if response.status_code == 200: with open(file_Path, 'wb') as file: file.write(response.content) - print('File downloaded successfully') - exec(open("greg.bat").read()) + print('File downloaded successfully') + file.close() + subprocess.run(['greg.bat']) else: print('Failed to download file') print("Bringing you back...") code() -code() +code() \ No newline at end of file