]> git.r.bdr.sh - rbdr/corona-regeln/blame - lib/rules/curfew.js
Capitalise mask names
[rbdr/corona-regeln] / lib / rules / curfew.js
CommitLineData
07d8db2b
RBR
1const internals ={
2
3 activities: [
4 'sex',
5 'skinny dipping',
6 'playing chess',
7 'debating',
8 'dancing',
9 'breeding horses',
10 'laughing',
11 'sneezing',
12 'cat wrestling',
13 'ordering food',
14 'remote work',
15 'internet usage',
16 'sleeping',
17 'eating',
18 'vacuuming',
19 'using a blender',
20 'having a party',
21 'theft',
22 'engaging in economic activity',
23 'using ketchup',
24 'tailgating',
25 'embezzelment',
26 'taking the U-Bahn',
27 'cutting your hair',
28 'using recreational drugs',
29 'tipping',
30 'interpretive dancing',
31 'origami',
32 'whittling',
33 'going for a walk',
34 'working'
35 ],
36
37 restrictions: [
38 'is not allowed',
39 'is mandatory',
40 'is optional',
41 'requires a mask',
42 'is only allowed indoors',
43 'is only allowed outdoors',
44 'is only allowed in groups larger than seven',
45 'requires a license',
46 'is allowed under police supervision',
47 'is allowed following social distancing rules',
48 'is only allowed in Neukölln',
49 'is only allowed in Kreuzberg',
50 'is only allowed in Charlottenburg',
51 'is only allowed in Wedding',
52 'is only allowed in Mitte',
53 'is only allowed in Prenzlauer Berg',
54 'is only allowed in Friedrichshain',
55 ]
56};
57
58module.exports = () => {
59
60 const startTime = Math.floor(Math.random() * 23) + 1;
61 const endTtime = Math.floor(Math.random() * 23) + 1;
62 const activity = internals.activities[Math.floor(Math.random() * internals.activities.length)];
63 const restriction = internals.restrictions[Math.floor(Math.random() * internals.restrictions.length)];
64
65 return {
66 emoji: '🕚',
67 text: `From ${startTime}:00 to ${endTtime}:00 ${activity} ${restriction}`
68 };
69}