summaryrefslogtreecommitdiffstats
path: root/nfsw/io.py
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-10-19 21:38:30 -0400
committerrsiddharth <s@ricketyspace.net>2019-10-19 21:38:30 -0400
commit7a7a38fa4ee490ae59e537f9cface21ff3a32394 (patch)
treea8a259bc4c70528616f7d08e528e60b624015e6b /nfsw/io.py
parent26b713184c3ffdaf6a2be77e5b3249e41cccaf77 (diff)
nfsw/io.py: Update query.
Add handling for "help".
Diffstat (limited to 'nfsw/io.py')
-rw-r--r--nfsw/io.py6
1 files changed, 6 insertions, 0 deletions
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: