From e09caadb899189ee0fa426d7be6713c023621848 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 28 Sep 2019 15:42:03 -0400 Subject: nfsw/scenes.py: Flesh out sexshop * nfsw/io.py (query): Update scene call. * nfsw/scenes.py (sexshop): Change argument to 'o' (dict). Flesh out the function li'l bit. --- nfsw/scenes.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'nfsw/scenes.py') diff --git a/nfsw/scenes.py b/nfsw/scenes.py index e2c3b00..55f443f 100644 --- a/nfsw/scenes.py +++ b/nfsw/scenes.py @@ -1,4 +1,6 @@ from nfsw.redis import redis as r, key as k +from nfsw.util import read_junk + def get_scene(name): scenes = { @@ -14,5 +16,17 @@ def current_scene(): ) -def sexshop(q): - return q + ' you are fucked' +def sexshop(o): + def intro(): + return read_junk('sexshop/intro') + + def process(q): + return '' + + if 'intro' in o: + return intro() + + if 'q' in o: + return process(o['q']) + + -- cgit v1.2.3