forked from endorphant/ttbp
updating intro text (closes #36) and adding post as nopub to setting defaults
parent
2193f4fcd4
commit
b367e5103f
|
@ -93,6 +93,16 @@ ___________________________________________________________
|
||||||
|
|
||||||
## page texts
|
## 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 <enter> to set up an account, or <ctrl-c> to quit.
|
||||||
|
""".lstrip()
|
||||||
|
|
||||||
credits = """
|
credits = """
|
||||||
ttbp was written for tilde.town by ~endorphant in python. the codebase is
|
ttbp was written for tilde.town by ~endorphant in python. the codebase is
|
||||||
publicly available on github at https://github.com/modgethanc/ttbp
|
publicly available on github at https://github.com/modgethanc/ttbp
|
||||||
|
|
19
ttbp/ttbp.py
19
ttbp/ttbp.py
|
@ -74,6 +74,7 @@ DEFAULT_SETTINGS = {
|
||||||
"gopher": False,
|
"gopher": False,
|
||||||
"publishing": False,
|
"publishing": False,
|
||||||
"rainbows": False,
|
"rainbows": False,
|
||||||
|
"post as nopub": False,
|
||||||
}
|
}
|
||||||
|
|
||||||
## user globals
|
## user globals
|
||||||
|
@ -82,7 +83,8 @@ SETTINGS = {
|
||||||
"publish dir": None,
|
"publish dir": None,
|
||||||
"gopher": False,
|
"gopher": False,
|
||||||
"publishing": False,
|
"publishing": False,
|
||||||
"rainbows": False
|
"rainbows": False,
|
||||||
|
"post as nopub": False,
|
||||||
}
|
}
|
||||||
|
|
||||||
## ttbp specific utilities
|
## ttbp specific utilities
|
||||||
|
@ -248,10 +250,7 @@ def init():
|
||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
input("""
|
input(config.intro_prompt)
|
||||||
i don't recognize you, stranger. let's make friends.
|
|
||||||
|
|
||||||
press <enter> to begin, or <ctrl-c> to get out of here.""")
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("\n\nthanks for checking in! i'll always be here.\n\n")
|
print("\n\nthanks for checking in! i'll always be here.\n\n")
|
||||||
quit()
|
quit()
|
||||||
|
@ -298,7 +297,15 @@ press <enter> to begin, or <ctrl-c> to get out of here.""")
|
||||||
setup()
|
setup()
|
||||||
core.load(SETTINGS)
|
core.load(SETTINGS)
|
||||||
|
|
||||||
input("\nyou're all good to go, "+chatter.say("friend")+"! hit <enter> 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 <enter> to continue.
|
||||||
|
""".format(friend=chatter.say("friend")))
|
||||||
|
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
def gen_header():
|
def gen_header():
|
||||||
|
|
Loading…
Reference in New Issue