diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-12-19 14:21:33 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-12-19 14:21:33 +0100 |
| commit | 5d9f7190bd118fe4d44594d7a9584de98b527467 (patch) | |
| tree | c323938b4626290a227a652380af769d7f4c4518 /lib/rules/curfew.js | |
| parent | 29f687276d9e9ef01ce70ebd210a01386ca581ae (diff) | |
Port to svelte
Diffstat (limited to 'lib/rules/curfew.js')
| -rw-r--r-- | lib/rules/curfew.js | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/lib/rules/curfew.js b/lib/rules/curfew.js deleted file mode 100644 index 9fc697f..0000000 --- a/lib/rules/curfew.js +++ /dev/null @@ -1,69 +0,0 @@ -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}` - }; -} |