Add trash

This commit is contained in:
Anthony Wang 2023-05-14 22:31:16 -04:00
parent 3d62c54b19
commit 0dd4e9740f
Signed by: a
GPG key ID: 42A5B952E6DD8D38

47
main.py Normal file
View file

@ -0,0 +1,47 @@
#/usr/bin/python
import os
print("""
__ __
/ /__________ ______/ /_
/ __/ ___/ __ `/ ___/ __ \\
/ /_/ / / /_/ (__ ) / / /
\__/_/ \__,_/____/_/ /_/
""")
while True:
print("$ ", end="")
x = input()
if "help" in x:
print("YOU THINK THIS IS A JOKE??? THERE ARE NO ANSWERS IN THE BACK OF THE BOOK!!!")
elif "if" in x:
print("NO BRANCHES FOR U!!!")
elif "for" in x or "while" in x:
print("YOU WANT TO MAKE ME RUN FOREVER???")
elif "cd" in x:
print("CD??? COMPACT DISK??? I HAVEN'T USED ONE IN DECADES!!!")
elif "ls" in x:
print("YOU FORGOT ALREADY???")
elif "pwd" in x:
print("GET LOST!!!")
elif "echo" in x:
print("I CAN'T HEAR YOU!!!")
elif "mkdir" in x:
print("WHY???")
elif "cp" in x:
print("TRYING TO COMMIT PIRACY???")
elif "mv" in x:
print("THAT FILE ISN'T GOING ANYWHERE!!!")
elif "rm" in x:
print("HAHAHAHAHA!!!")
elif "sudo" in x:
os.system("xdg-open https://xkcd.com/838/")
elif "chdir" in x and len(x.split()) > 1:
print("YOUR WISH HAS BEEN GRANTED!!!")
os.chdir(x.split()[1])
else:
r = os.system(x)
if r == 0:
print("WELL WELL WELL IT LOOKS LIKE SOMEONE HAS A NONZERO IQ!!!")
else:
print("DID YOU REALLY THINK THAT WOULD WORK???")