-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplan
54 lines (44 loc) · 877 Bytes
/
plan
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
THIS IS MOST LIKELY OUTDATED
server store:
- active_channel
- state: [idle, stopped, playing, played, skipping]
- current_song
- playlist
functions:
- start
- stop
- skip
- play_song
- message_event
- correct_guess
- times_up
- reveal
start:
- if state == stopped
- state: idle
- buttons: [duration (+, -), start]
stop:
- if state != stopped
- state: stopped
play_song:
- if state in [idle, skipping]
- state: [playing, played]
- buttons: [reveal, skip]
- after 2x duration: times_up
skip:
- if state in [playing]
- state: skipping
- runs play_song
reveal:
- if state in [played]
- state: idle
times_up:
- if state == played
- state: idle
- buttons: [reveal, duration (+, -), play_song]
correct_guess:
- if state in [playing, played]
- state: idle
- buttons: [duration (+, -), play_song]
message_event:
- if state in [playing, played]