summaryrefslogtreecommitdiffstats
path: root/nfsw/scenes.py
blob: 55f443f1a694e4e78c4ba6fb1db51bfa38861ce3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from nfsw.redis import redis as r, key as k
from nfsw.util import read_junk


def get_scene(name):
    scenes = {
        'sexshop': sexshop
    }

    return scenes.get(name, None)


def current_scene():
    return get_scene(
        r().get(k('scene')).decode()
    )


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'])