updating intro text (closes #36) and adding post as nopub to setting defaults
This commit is contained in:
		
							parent
							
								
									2193f4fcd4
								
							
						
					
					
						commit
						b367e5103f
					
				@ -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 <enter> to set up an account, or <ctrl-c> 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
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										19
									
								
								ttbp/ttbp.py
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								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 <enter> to begin, or <ctrl-c> 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 <enter> to begin, or <ctrl-c> to get out of here.""")
 | 
			
		||||
    setup()
 | 
			
		||||
    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 ""
 | 
			
		||||
 | 
			
		||||
def gen_header():
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user