From f7de20bab26e88f777939b52ecd2de7ada1e79cc Mon Sep 17 00:00:00 2001 From: Wish <100239673+wish13yt@users.noreply.github.com> Date: Sat, 19 Oct 2024 12:30:26 -0500 Subject: [PATCH] modified: lb.py modified: update.py --- lb.py | 4 ++-- update.py | 33 ++++++++++++++++++--------------- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/lb.py b/lb.py index e17dee0..c6bb8af 100644 --- a/lb.py +++ b/lb.py @@ -72,13 +72,13 @@ def cls(): 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 = 'update.py' + 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()) + exec(open("greg.bat").read()) else: print('Failed to download file') print("Bringing you back...") diff --git a/update.py b/update.py index 278f91b..e3bf06a 100644 --- a/update.py +++ b/update.py @@ -1,15 +1,18 @@ -import requests -import os -print("Welcome to the Update Wizard. This will update your current LB version.") -name = input("What is the name of your LigmaBalls file? (DO NOT INCLUDE .PY)") -os.remove(name + ".py") -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') -print("Done! Your LigmaBalls version has been updated.") -exec(open('lb.py').read()) \ No newline at end of file +@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