From 8bbebf5ced15def2cd71e0adeccb94791b9a1af8 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 19 Oct 2019 20:26:09 -0400 Subject: nfsw/scenes.py: Flesh out bedroom. --- nfsw/scenes.py | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'nfsw/scenes.py') diff --git a/nfsw/scenes.py b/nfsw/scenes.py index 2c76ad4..3639719 100644 --- a/nfsw/scenes.py +++ b/nfsw/scenes.py @@ -10,7 +10,8 @@ def get_scene(name): 'coitus': coitus, 'strayed': strayed, 'xkcd': xkcd, - 'bedroom': bedroom + 'bedroom': bedroom, + 'thanks': thanks } return scenes.get(name, None) @@ -541,4 +542,23 @@ def xkcd(o): def bedroom(o): - return 'You are in your bedroom' + r = redis() + + def rj(name): + return read_junk('bedroom/{}'.format(name)) + + # Mark scene done + r.sadd('scenes:done', 'bedroom') + + # Move to next scene + r.set('scene', 'thanks') + + return '\n\n'.join([ + rj('merry-christmas'), + rj('sodomized'), + thanks({}) + ]) + + +def thanks(o): + return read_junk('thanks/solong') -- cgit v1.2.3