]> git.r.bdr.sh - rbdr/corona-regeln/blob - lib/rules/mask.js
1e8295944bf8d807eaa963881faaab2749a5cf5a
[rbdr/corona-regeln] / lib / rules / mask.js
1 const internals ={
2
3 masks: [
4 'HTML',
5 'FFP4',
6 'Leather',
7 'Denim',
8 'Pink',
9 'RSVP',
10 'TBD',
11 'Quantum',
12 'Medical',
13 'GMO',
14 'FFP9',
15 'FFP2.5',
16 'KN96',
17 'France98',
18 'Mesh',
19 ],
20
21 conditions: [
22 'when dancing',
23 'at all times',
24 'in bed',
25 'outdoors',
26 'when running',
27 'when driving',
28 'when cycling',
29 'in restaurants',
30 'in pools',
31 'in small groups',
32 'at 3pm',
33 'at 5pm',
34 'when nobody is looking',
35 'around the police',
36 'when speaking',
37 'while chewing gum',
38 'while eating bread',
39 ]
40 };
41
42 module.exports = () => {
43
44 const mask = internals.masks[Math.floor(Math.random() * internals.masks.length)];
45 const condition = internals.conditions[Math.floor(Math.random() * internals.conditions.length)];
46
47 return {
48 emoji: '😷',
49 text: `${mask} masks must be worn ${condition}`
50 };
51 }