From f1f6f03e0895384547b91cd5779bfa45b1536637 Mon Sep 17 00:00:00 2001 From: endorphant Date: Tue, 5 Dec 2017 23:00:21 -0500 Subject: [PATCH] cleaning up gopher setting --- ttbp/ttbp.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/ttbp/ttbp.py b/ttbp/ttbp.py index a2d571c..f9e6c16 100644 --- a/ttbp/ttbp.py +++ b/ttbp/ttbp.py @@ -443,7 +443,8 @@ def setup(): #redraw('opting into gopher: ' + str(SETTINGS['gopher'])) # TODO for now i'm hardcoding where people's gopher stuff is generated. if # there is demand for this to be configurable we can expose that. - gopher.setup_gopher('feels') + if SETTINGS.get("gopher"): + gopher.setup_gopher('feels') redraw("gopher publishing set to "+str(SETTINGS.get("gopher"))) save_settings() return setup() @@ -1167,8 +1168,11 @@ def update_version(): """) SETTINGS.update({'gopher': gopher.select_gopher()}) - print("opting into gopher: " + str(SETTINGS['gopher'])) - gopher.setup_gopher('feels') + if SETTINGS.get('gopher'): + print("opting into gopher: " + str(SETTINGS['gopher'])) + gopher.setup_gopher('feels') + else: + print("okay, passing on gopher for now. this option is available in settings if you change\nyour mind!") # increment user versionfile open(versionFile, "w").write(__version__) @@ -1218,6 +1222,7 @@ version 0.9.3 features: """.lstrip()) #if userVersion[0:5] < "0.10.1": # todo: write a better updating function +''' if 1: # version 0.10.1 patch notes print(""" @@ -1226,8 +1231,10 @@ version 0.9.3 features: * thanks to help from ~vilmibm, ttbp now supports publishing to gopher! * if you enable gopher publishing, feels will automatically publish to gopher://tilde.town/1/~{user}/feels + * if you don't know what gopher is, it's fine to opt-out; ask around on + irc if you'd like to learn more! + * the settings menu has been reworked to be less clunky """.lstrip()) -''' #####