forked from endorphant/ttbp
wrangling text
parent
27db504718
commit
8d93eba14d
|
@ -127,6 +127,51 @@ editor.
|
||||||
|
|
||||||
""".format(today=time.strftime("%d %B %Y"))
|
""".format(today=time.strftime("%d %B %Y"))
|
||||||
|
|
||||||
|
bury_feels_prompt = """\
|
||||||
|
burying a feel removes it from view, including your own. buried feels are
|
||||||
|
stashed in a private directory at:
|
||||||
|
|
||||||
|
{buried_dir}
|
||||||
|
|
||||||
|
you can visit your feels there from the command line, but no one else can view
|
||||||
|
those files.
|
||||||
|
|
||||||
|
(a buried feels browser is in the works; for now, you'll have to use the
|
||||||
|
command line to view your buried feels)
|
||||||
|
|
||||||
|
which day's feels do you want to bury?
|
||||||
|
|
||||||
|
YYYYMMDD (or 'q' to cancel)> """.format(buried_dir=BURIED_FEELS)
|
||||||
|
|
||||||
|
account_wipe_prompt = """\
|
||||||
|
warning! ! ! this action is irreversible!!!
|
||||||
|
|
||||||
|
this tool will remove your entire presence from the feels engine. this includes
|
||||||
|
all posts, settings, and published html/gopher feels. you will no longer be
|
||||||
|
listed anywhere as a user here.
|
||||||
|
|
||||||
|
there is no way for me to help you recover any part of your feels acccount. i
|
||||||
|
respect your need to do this from time to time, so please be sure you're ready!
|
||||||
|
|
||||||
|
i recommend that you make a backup of your feels and stash them somewhere safe,
|
||||||
|
just in case a future version of you still wants to look them over."""
|
||||||
|
|
||||||
|
feels_purge_prompt = """\
|
||||||
|
warning! ! ! this action is irreversible!!!
|
||||||
|
|
||||||
|
there is no way for me to help you recover your feels if you purge them all. i
|
||||||
|
respect your need to do this from time to time, so please be sure you're ready!
|
||||||
|
|
||||||
|
i recommend that you make a backup of your feels and stash them somewhere safe,
|
||||||
|
just in case a future version of you still wants to look them over.
|
||||||
|
"""
|
||||||
|
|
||||||
|
mystery_error = """\
|
||||||
|
sorry, something went wrong! please try to address the error and try again.
|
||||||
|
if you need help, ask in IRC or send mail to ~endorphant and we'll try to
|
||||||
|
figure it out!
|
||||||
|
""".lstrip()
|
||||||
|
|
||||||
## update announcements
|
## update announcements
|
||||||
|
|
||||||
UPDATES = {
|
UPDATES = {
|
||||||
|
|
51
ttbp/ttbp.py
51
ttbp/ttbp.py
|
@ -819,10 +819,7 @@ please enter""")
|
||||||
subprocess.call(["cp", backupfile, config.BACKUPS])
|
subprocess.call(["cp", backupfile, config.BACKUPS])
|
||||||
print("\nbackup saved! i also put a copy at {backup_dir} for you.".format(backup_dir = config.BACKUPS))
|
print("\nbackup saved! i also put a copy at {backup_dir} for you.".format(backup_dir = config.BACKUPS))
|
||||||
else:
|
else:
|
||||||
print("""
|
print(config.mystery_error)
|
||||||
sorry, something went wrong! please try to address the error and try again.
|
|
||||||
if you need help, ask in IRC or send mail to ~endorphant and we'll try to
|
|
||||||
figure it out!""")
|
|
||||||
else:
|
else:
|
||||||
print("no problem, {friend}; come back whenever if you want a backup!".format(friend=chatter.say("friend")))
|
print("no problem, {friend}; come back whenever if you want a backup!".format(friend=chatter.say("friend")))
|
||||||
|
|
||||||
|
@ -889,15 +886,7 @@ please enter""")
|
||||||
def purge_feels():
|
def purge_feels():
|
||||||
"""handles deleting all feels"""
|
"""handles deleting all feels"""
|
||||||
|
|
||||||
print("""\
|
print(config.feels_purge_prompt)
|
||||||
warning! ! ! this action is irreversible!!!
|
|
||||||
|
|
||||||
there is no way for me to help you recover your feels if you purge them all. i
|
|
||||||
respect your need to do this from time to time, so please be sure you're ready!
|
|
||||||
|
|
||||||
i recommend that you make a backup of your feels and stash them somewhere safe,
|
|
||||||
just in case a future version of you still wants to look them over.
|
|
||||||
""")
|
|
||||||
|
|
||||||
print("...")
|
print("...")
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
|
@ -932,10 +921,7 @@ type the following purge code:
|
||||||
core.load_files()
|
core.load_files()
|
||||||
print("ALL FEELS PURGED! you're ready to start fresh!")
|
print("ALL FEELS PURGED! you're ready to start fresh!")
|
||||||
else:
|
else:
|
||||||
print("""
|
print(config.mystery_error)
|
||||||
sorry, something went wrong! please try to address the error and try again.
|
|
||||||
if you need help, ask in IRC or send mail to ~endorphant and we'll try to
|
|
||||||
figure it out!""")
|
|
||||||
else:
|
else:
|
||||||
print("\nfeels purge canceled! you're welcome to come back again.")
|
print("\nfeels purge canceled! you're welcome to come back again.")
|
||||||
else:
|
else:
|
||||||
|
@ -949,19 +935,7 @@ figure it out!""")
|
||||||
def wipe_account():
|
def wipe_account():
|
||||||
"""handles wiping feels account"""
|
"""handles wiping feels account"""
|
||||||
|
|
||||||
print("""\
|
print(config.account_wipe_prompt)
|
||||||
warning! ! ! this action is irreversible!!!
|
|
||||||
|
|
||||||
this tool will remove your entire presence from the feels engine. this includes
|
|
||||||
all posts, settings, and published html/gopher feels. you will no longer be
|
|
||||||
listed anywhere as a user here.
|
|
||||||
|
|
||||||
there is no way for me to help you recover any part of your feels acccount. i
|
|
||||||
respect your need to do this from time to time, so please be sure you're ready!
|
|
||||||
|
|
||||||
i recommend that you make a backup of your feels and stash them somewhere safe,
|
|
||||||
just in case a future version of you still wants to look them over.
|
|
||||||
""")
|
|
||||||
|
|
||||||
print("...")
|
print("...")
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
|
@ -1000,10 +974,7 @@ thank you for sharing your feels!""")
|
||||||
input("\n\npress <enter> to exit the feels engine.\n\n")
|
input("\n\npress <enter> to exit the feels engine.\n\n")
|
||||||
sys.exit(stop())
|
sys.exit(stop())
|
||||||
else:
|
else:
|
||||||
print("""
|
print(config.mystery_error)
|
||||||
sorry, something went wrong! please try to address the error and try again.
|
|
||||||
if you need help, ask in IRC or send mail to ~endorphant and we'll try to
|
|
||||||
figure it out!""")
|
|
||||||
else:
|
else:
|
||||||
print("\naccount deletion canceled! you're welcome to come back again.")
|
print("\naccount deletion canceled! you're welcome to come back again.")
|
||||||
|
|
||||||
|
@ -1077,17 +1048,7 @@ def bury_feels():
|
||||||
"""queries for a feel to bury, then calls the feels burying handler.
|
"""queries for a feel to bury, then calls the feels burying handler.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
feel = input("""\
|
feel = input(config.bury_feels_prompt)
|
||||||
burying a feel removes it from view, including your own. buried feels are
|
|
||||||
stashed in a private directory at {buried_dir}; you can visit your feels there
|
|
||||||
from the command line, but no one else can view those files.
|
|
||||||
|
|
||||||
(a buried feels browser is in the works; for now, you'll have to use the
|
|
||||||
command line to view your buried feels)
|
|
||||||
|
|
||||||
which day's feels do you want to bury?
|
|
||||||
|
|
||||||
YYYYMMDD (or 'q' to cancel)> """.format(buried_dir=""))
|
|
||||||
|
|
||||||
if feel in util.BACKS:
|
if feel in util.BACKS:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue