adjusting timing
parent
8c9fe44546
commit
e40f3d2765
35
ttbp/ttbp.py
35
ttbp/ttbp.py
|
@ -260,7 +260,7 @@ press <enter> to begin, or <ctrl-c> to get out of here.""")
|
||||||
|
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
print("...")
|
print("...")
|
||||||
time.sleep(1)
|
time.sleep(.5)
|
||||||
|
|
||||||
## record user in source list
|
## record user in source list
|
||||||
users = open(config.USERFILE, 'a')
|
users = open(config.USERFILE, 'a')
|
||||||
|
@ -292,7 +292,7 @@ press <enter> to begin, or <ctrl-c> to get out of here.""")
|
||||||
f.write(config.DEFAULT_STYLE)
|
f.write(config.DEFAULT_STYLE)
|
||||||
|
|
||||||
## run user-interactive setup and load core engine
|
## run user-interactive setup and load core engine
|
||||||
time.sleep(1)
|
time.sleep(0.5)
|
||||||
print("done setting up feels!")
|
print("done setting up feels!")
|
||||||
print("\nthese are the default settings. you can change any of them now, or change them later at any time!!")
|
print("\nthese are the default settings. you can change any of them now, or change them later at any time!!")
|
||||||
setup()
|
setup()
|
||||||
|
@ -407,7 +407,7 @@ def setup_repair():
|
||||||
save_settings()
|
save_settings()
|
||||||
|
|
||||||
print("...")
|
print("...")
|
||||||
time.sleep(1)
|
time.sleep(0.5)
|
||||||
input("\nyou're all good to go, "+chatter.say("friend")+"! hit <enter> to continue.\n\n")
|
input("\nyou're all good to go, "+chatter.say("friend")+"! hit <enter> to continue.\n\n")
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
|
@ -838,7 +838,7 @@ YYYYMMDD (or 'q' to cancel)> """)
|
||||||
return
|
return
|
||||||
|
|
||||||
print("...")
|
print("...")
|
||||||
time.sleep(1)
|
time.sleep(0.1)
|
||||||
print("""\
|
print("""\
|
||||||
here's a preview of that feel. press <q> when you're done reviewing!
|
here's a preview of that feel. press <q> when you're done reviewing!
|
||||||
-------------------------------------------------------------""")
|
-------------------------------------------------------------""")
|
||||||
|
@ -862,7 +862,7 @@ type the date again to confirm, or 'q' to cancel.""")
|
||||||
|
|
||||||
if confirm == feel:
|
if confirm == feel:
|
||||||
print("...")
|
print("...")
|
||||||
time.sleep(1)
|
time.sleep(0.5)
|
||||||
core.delete_feel(feel+".txt")
|
core.delete_feel(feel+".txt")
|
||||||
print("feels deleted!")
|
print("feels deleted!")
|
||||||
else:
|
else:
|
||||||
|
@ -896,9 +896,9 @@ just in case a future version of you still wants to look them over.
|
||||||
""")
|
""")
|
||||||
|
|
||||||
print("...")
|
print("...")
|
||||||
time.sleep(1)
|
time.sleep(0.1)
|
||||||
print("...loading feels...")
|
print("...loading feels...")
|
||||||
time.sleep(1)
|
time.sleep(0.5)
|
||||||
print("...")
|
print("...")
|
||||||
|
|
||||||
feelscount = len(os.listdir(config.MAIN_FEELS))
|
feelscount = len(os.listdir(config.MAIN_FEELS))
|
||||||
|
@ -920,7 +920,7 @@ the following purge code:
|
||||||
|
|
||||||
if ans == purgecode:
|
if ans == purgecode:
|
||||||
print("...")
|
print("...")
|
||||||
time.sleep(1)
|
time.sleep(0.5)
|
||||||
unpublish()
|
unpublish()
|
||||||
if not subprocess.call(["rm", "-rf", config.MAIN_FEELS]):
|
if not subprocess.call(["rm", "-rf", config.MAIN_FEELS]):
|
||||||
subprocess.call(["mkdir", config.MAIN_FEELS])
|
subprocess.call(["mkdir", config.MAIN_FEELS])
|
||||||
|
@ -958,9 +958,9 @@ just in case a future version of you still wants to look them over.
|
||||||
""")
|
""")
|
||||||
|
|
||||||
print("...")
|
print("...")
|
||||||
time.sleep(1)
|
time.sleep(0.1)
|
||||||
print("...loading feels...")
|
print("...loading feels...")
|
||||||
time.sleep(1)
|
time.sleep(0.5)
|
||||||
print("...")
|
print("...")
|
||||||
purgecode = util.genID(5)
|
purgecode = util.genID(5)
|
||||||
|
|
||||||
|
@ -976,7 +976,7 @@ if you're ready, carefully type the following purge code:
|
||||||
|
|
||||||
if ans == purgecode:
|
if ans == purgecode:
|
||||||
print("...")
|
print("...")
|
||||||
time.sleep(1)
|
time.sleep(0.5)
|
||||||
unpublish()
|
unpublish()
|
||||||
if not subprocess.call(["rm", "-rf", config.PATH]):
|
if not subprocess.call(["rm", "-rf", config.PATH]):
|
||||||
print("""
|
print("""
|
||||||
|
@ -1007,7 +1007,7 @@ def load_backup():
|
||||||
|
|
||||||
print("scanning backup directory at {directory}...".format(directory=config.BACKUPS))
|
print("scanning backup directory at {directory}...".format(directory=config.BACKUPS))
|
||||||
|
|
||||||
time.sleep(1)
|
time.sleep(.5)
|
||||||
print("...\n")
|
print("...\n")
|
||||||
|
|
||||||
backups = []
|
backups = []
|
||||||
|
@ -1020,7 +1020,7 @@ def load_backup():
|
||||||
subprocess.call(["mkdir", config.BACKUPS])
|
subprocess.call(["mkdir", config.BACKUPS])
|
||||||
|
|
||||||
if len(backups) < 1:
|
if len(backups) < 1:
|
||||||
print(""""
|
print("""
|
||||||
sorry, i didn't find any feels backups! if you have a backup file handy, please
|
sorry, i didn't find any feels backups! if you have a backup file handy, please
|
||||||
move it to {directory} and try running this tool again.\
|
move it to {directory} and try running this tool again.\
|
||||||
""".format(directory=config.BACKUPS))
|
""".format(directory=config.BACKUPS))
|
||||||
|
@ -1037,7 +1037,11 @@ move it to {directory} and try running this tool again.\
|
||||||
|
|
||||||
tempdir = os.path.join(config.BACKUPS, os.path.splitext(os.path.splitext(os.path.basename(backups[choice]))[0])[0], "entries")
|
tempdir = os.path.join(config.BACKUPS, os.path.splitext(os.path.splitext(os.path.basename(backups[choice]))[0])[0], "entries")
|
||||||
|
|
||||||
|
time.sleep(.5)
|
||||||
|
print("...\n")
|
||||||
|
|
||||||
if len(os.listdir(tempdir)) == 0:
|
if len(os.listdir(tempdir)) == 0:
|
||||||
|
os.rmdir(tempdir)
|
||||||
print("congrats! your feels archive has been unloaded.")
|
print("congrats! your feels archive has been unloaded.")
|
||||||
else:
|
else:
|
||||||
print("""\
|
print("""\
|
||||||
|
@ -1445,9 +1449,10 @@ def unpublish():
|
||||||
if directory:
|
if directory:
|
||||||
publishDir = os.path.join(config.PUBLIC, directory)
|
publishDir = os.path.join(config.PUBLIC, directory)
|
||||||
subprocess.call(["rm", publishDir])
|
subprocess.call(["rm", publishDir])
|
||||||
|
os.mkdir(publishDir)
|
||||||
|
|
||||||
if SETTINGS.get("gopher"):
|
if SETTINGS.get("gopher"):
|
||||||
SETTINGS.update({"gopher": False})
|
#SETTINGS.update({"gopher": False})
|
||||||
subprocess.call(["rm", config.GOPHER_PATH])
|
subprocess.call(["rm", config.GOPHER_PATH])
|
||||||
|
|
||||||
def update_publishing():
|
def update_publishing():
|
||||||
|
@ -1540,7 +1545,7 @@ def update_user_version():
|
||||||
|
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
print("...")
|
print("...")
|
||||||
time.sleep(1)
|
time.sleep(0.5)
|
||||||
|
|
||||||
userVersion = ""
|
userVersion = ""
|
||||||
(x, y, z) = [0, 0, 0]
|
(x, y, z) = [0, 0, 0]
|
||||||
|
|
Loading…
Reference in New Issue