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/junk/bedroom/merry-christmas | 4 ++++ nfsw/junk/bedroom/sodomized | 10 ++++++++++ nfsw/junk/thanks/solong | 10 ++++++++++ nfsw/scenes.py | 24 ++++++++++++++++++++++-- 4 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 nfsw/junk/bedroom/merry-christmas create mode 100644 nfsw/junk/bedroom/sodomized create mode 100644 nfsw/junk/thanks/solong diff --git a/nfsw/junk/bedroom/merry-christmas b/nfsw/junk/bedroom/merry-christmas new file mode 100644 index 0000000..2934883 --- /dev/null +++ b/nfsw/junk/bedroom/merry-christmas @@ -0,0 +1,4 @@ +You wake up gasping in your bed in your +bedroom. It's dark except for the +flouroscent glowing artwork on the +wall: diff --git a/nfsw/junk/bedroom/sodomized b/nfsw/junk/bedroom/sodomized new file mode 100644 index 0000000..3feb379 --- /dev/null +++ b/nfsw/junk/bedroom/sodomized @@ -0,0 +1,10 @@ + ________________________________ +< merry fucking christmas brian. > + -------------------------------- + \ _ + \ (_) + \ ^__^ / \ + \ (**)\_____/_\ \ + (__)\ ) / + U ||----w (( + || ||>> diff --git a/nfsw/junk/thanks/solong b/nfsw/junk/thanks/solong new file mode 100644 index 0000000..17ce5c9 --- /dev/null +++ b/nfsw/junk/thanks/solong @@ -0,0 +1,10 @@ +Your phone beeps. It's a text message +from an unknown number. It reads: + +> Thanks for playing! +> I promise, I never +> do this again. +> +> With sincere apologies, +> +> - Siddharth 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