B
blackneos940
Guest
I'VE DONE IT!!......
FINALLY!!.....
After many nights of Aspergers, Depression, some existential Anxiety, and doubt about my own Programming skills, I made ANOTHER Program, written in Python.....!! ^^ And soon, I'll get some much-needed rest..... :3 (Note to self: NEVER write Comments while on no sleep....
)



Code:
#Here, we need to use the time Module for, well, time-related things like counting down, etc., etc.
#We also need the os Module for things like writing to a Directory of the user's choosing, and for clearing the screen, which ALSO depends on which OS the user is, well, using :)
#This Program, however awful, is released under the GNU GPL V1, or, if God instills the desire in you, any later version... Yes, I haven't slept all night... :3
import time as t
import os
print ("Welcome to Swiss: The Smarter Toolkit!\n");
#We get input from the user on what to do first
task = (input("You can do one of three things.\nFor now...\n\n1. Create a random file\n2. Use a pretty l337 timer.\n3. Stream an endless barrage of a word of your choice. Don't be filthy, now... ;)\nEnter a choice now. Please use numbers 1-3, or else this l337 Program will crap out in a totally uncool way... :'(\n>>> "))
if task == "1":
file_name = input("Name teh file!! :3 Make SURE you add the appropriate extension now! :3\n\n>>> ")
directory_choice = input("Type in the directory you wish to save said File in! :3\ Depending on your OS of choice, you'll have to use either a \"/\" or a \"\\\"\n>>> ")
os.chdir()
with open (file_name, "w") as output:
output.write(input("Ah, the Literary sort, are we...? Type whatever you feel like typing into the following Prompt now. It could be, oh, I don't know, a Shell Script, a Batch File, or some other life-ruining, evil piece of Code... ;3\n\n>>> "))
if task == "2":
number_of_secs = int(input("How many Seconds do you want to count down with...? Anything other than seconds, and it could get bad...\n>>> "))
t.sleep(number_of_secs)
print ("Times Up! :3 Huh, my arm and chest both hurt... Tingling.... Dear God. O.o\nNo... Not time to die YET!! :D I'm too LAZY to die! :D")
if task == "3":
#Here's what determines which OS's command we use. (I.E., "cls" in Windows, and "clear" in Linux and OSX)
Operating_System = input("Which OS are you using?\nType either \"Linux\", \"OSX\", or \"Windows\", EXACTLY as shown. Otherwise, it won't work.\nAlso, if you are using Cygwin, just type in Linux. I found that out while crash-testing this Program. :)\n>>> ")
pandoras_box = input("Enter your gibberish now!\nIt can be about ANYTHING you want... You can even insult the CREATOR of this Program! :D\n>>> ")
while True != False:
#Ooh, FANCY..... :3
t.sleep(1)
print (pandoras_box)
if Operating_System == "Windows":
os.system("cls")
elif Operating_System == "Linux":
os.system("clear")
elif Operating_System == "OSX":
os.system("clear")
#This is where we finish up.
print ("Thank you for trying out this heap of s-- Er, thank you for trying out this Program! Have a great day!!\n")