Skip to content

Commit

Permalink
deleted: greg.bat
Browse files Browse the repository at this point in the history
	modified:   lb.py
  • Loading branch information
wish13yt committed Oct 19, 2024
1 parent f7de20b commit f28a0f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 24 deletions.
18 changes: 0 additions & 18 deletions greg.bat

This file was deleted.

12 changes: 6 additions & 6 deletions lb.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import requests
import subprocess
def code():
def cls():
os.system('cls' if os.name=='nt' else 'clear')
Expand Down Expand Up @@ -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.")
Expand Down Expand Up @@ -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()

0 comments on commit f28a0f0

Please sign in to comment.