From b367e5103f501ff8e9e92c4e73825447527cea68 Mon Sep 17 00:00:00 2001 From: Vincent Zeng Date: Fri, 23 Mar 2018 00:11:40 -0400 Subject: [PATCH] updating intro text (closes #36) and adding post as nopub to setting defaults --- ttbp/config/__init__.py | 10 ++++++++++ ttbp/ttbp.py | 19 +++++++++++++------ 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/ttbp/config/__init__.py b/ttbp/config/__init__.py index 3919caf..430238d 100644 --- a/ttbp/config/__init__.py +++ b/ttbp/config/__init__.py @@ -93,6 +93,16 @@ ___________________________________________________________ ## page texts +intro_prompt = """ +i don't recognize you, stranger. let's make friends. + +the feels engine is an internal blogging platform on tilde.town. it assists you +in recording your feels, giving you the option to publish to html or gopher, and +read the feels of other users on tilde.town. + +press to set up an account, or to quit. +""".lstrip() + credits = """ ttbp was written for tilde.town by ~endorphant in python. the codebase is publicly available on github at https://github.com/modgethanc/ttbp diff --git a/ttbp/ttbp.py b/ttbp/ttbp.py index e669b76..d5a86f9 100644 --- a/ttbp/ttbp.py +++ b/ttbp/ttbp.py @@ -74,6 +74,7 @@ DEFAULT_SETTINGS = { "gopher": False, "publishing": False, "rainbows": False, + "post as nopub": False, } ## user globals @@ -82,7 +83,8 @@ SETTINGS = { "publish dir": None, "gopher": False, "publishing": False, - "rainbows": False + "rainbows": False, + "post as nopub": False, } ## ttbp specific utilities @@ -248,10 +250,7 @@ def init(): """ try: - input(""" -i don't recognize you, stranger. let's make friends. - -press to begin, or to get out of here.""") + input(config.intro_prompt) except KeyboardInterrupt: print("\n\nthanks for checking in! i'll always be here.\n\n") quit() @@ -298,7 +297,15 @@ press to begin, or to get out of here.""") setup() core.load(SETTINGS) - input("\nyou're all good to go, "+chatter.say("friend")+"! hit to continue.\n\n") + input(""" + +you're all good to go, {friend}! if you have any questions about how things +work here, check out the documentation from the main menu, ask in IRC, or +drop ~endorphant a line! + +hit to continue. +""".format(friend=chatter.say("friend"))) + return "" def gen_header():