Skip to content

Commit

Permalink
modified: lb.py
Browse files Browse the repository at this point in the history
modified:   update.py
  • Loading branch information
wish13yt committed Oct 19, 2024
1 parent 53f346d commit f7de20b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
4 changes: 2 additions & 2 deletions lb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...")
Expand Down
33 changes: 18 additions & 15 deletions update.py
Original file line number Diff line number Diff line change
@@ -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())
@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

0 comments on commit f7de20b

Please sign in to comment.