aboutsummaryrefslogtreecommitdiff
path: root/lib/rules/curfew.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rules/curfew.js')
-rw-r--r--lib/rules/curfew.js69
1 files changed, 69 insertions, 0 deletions
diff --git a/lib/rules/curfew.js b/lib/rules/curfew.js
new file mode 100644
index 0000000..9fc697f
--- /dev/null
+++ b/lib/rules/curfew.js
@@ -0,0 +1,69 @@
+const internals ={
+
+ activities: [
+ 'sex',
+ 'skinny dipping',
+ 'playing chess',
+ 'debating',
+ 'dancing',
+ 'breeding horses',
+ 'laughing',
+ 'sneezing',
+ 'cat wrestling',
+ 'ordering food',
+ 'remote work',
+ 'internet usage',
+ 'sleeping',
+ 'eating',
+ 'vacuuming',
+ 'using a blender',
+ 'having a party',
+ 'theft',
+ 'engaging in economic activity',
+ 'using ketchup',
+ 'tailgating',
+ 'embezzelment',
+ 'taking the U-Bahn',
+ 'cutting your hair',
+ 'using recreational drugs',
+ 'tipping',
+ 'interpretive dancing',
+ 'origami',
+ 'whittling',
+ 'going for a walk',
+ 'working'
+ ],
+
+ restrictions: [
+ 'is not allowed',
+ 'is mandatory',
+ 'is optional',
+ 'requires a mask',
+ 'is only allowed indoors',
+ 'is only allowed outdoors',
+ 'is only allowed in groups larger than seven',
+ 'requires a license',
+ 'is allowed under police supervision',
+ 'is allowed following social distancing rules',
+ 'is only allowed in Neukölln',
+ 'is only allowed in Kreuzberg',
+ 'is only allowed in Charlottenburg',
+ 'is only allowed in Wedding',
+ 'is only allowed in Mitte',
+ 'is only allowed in Prenzlauer Berg',
+ 'is only allowed in Friedrichshain',
+ ]
+};
+
+module.exports = () => {
+
+ const startTime = Math.floor(Math.random() * 23) + 1;
+ const endTtime = Math.floor(Math.random() * 23) + 1;
+ const activity = internals.activities[Math.floor(Math.random() * internals.activities.length)];
+ const restriction = internals.restrictions[Math.floor(Math.random() * internals.restrictions.length)];
+
+ return {
+ emoji: '🕚',
+ text: `From ${startTime}:00 to ${endTtime}:00 ${activity} ${restriction}`
+ };
+}