Skip to content

Commit

Permalink
modified: lb.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wish13yt committed Oct 19, 2024
1 parent d71488f commit 77adfe3
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions lb.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import requests
def code():
def cls():
os.system('cls' if os.name=='nt' else 'clear')
Expand Down Expand Up @@ -31,8 +32,18 @@ def cls():
cls()
code()
if (command == "freakybob"):
fb = open("freakybob.txt", "r")
print(fb.read())
fb.close()
code()
print("This requires an additional download of 5.42 KB.")
input("Are you fine with that? Close this if not.")
url = 'https://github.com/Freakybob-Team/lb/blob/main/freakybob.txt?raw=true'
response = requests.get(url)
file_Path = 'freakybob.txt'
response = requests.get(url)
if response.status_code == 200:
with open(file_Path, 'wb') as file:
file.write(response.content)
print('File downloaded successfully')
fb = open("freakybob.txt", "r")
print(fb.read())
fb.close()
code()
code()

0 comments on commit 77adfe3

Please sign in to comment.