From 7a7a38fa4ee490ae59e537f9cface21ff3a32394 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 19 Oct 2019 21:38:30 -0400 Subject: nfsw/io.py: Update query. Add handling for "help". --- nfsw/io.py | 6 ++++++ nfsw/junk/help/senditdown | 14 ++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 nfsw/junk/help/senditdown diff --git a/nfsw/io.py b/nfsw/io.py index d6ff4ae..733171f 100644 --- a/nfsw/io.py +++ b/nfsw/io.py @@ -70,6 +70,12 @@ def query(): # Log query. r.rpush('log', q) + # help. + if q == 'help': + return { + 'ans': read_junk('help/senditdown') + } + # Get current scene. scene = current_scene() if scene is None: diff --git a/nfsw/junk/help/senditdown b/nfsw/junk/help/senditdown new file mode 100644 index 0000000..f9f2b3a --- /dev/null +++ b/nfsw/junk/help/senditdown @@ -0,0 +1,14 @@ +NFSW Help: + + 1. In most scenes you'll have to answer a + question. Simply enter the answer to move to + the next stage of the game. + + 2. If you would like to navigate to some place + simply type in "enter PLACE" or "go to PLACE". + + 3. If you would like to reset the game and start + from the beginning, type "nfsw reset" and then + "yes". + + 4. The whole thing is nihilistic. So, fuck it. -- cgit v1.2.3