From 5d9f7190bd118fe4d44594d7a9584de98b527467 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 19 Dec 2021 14:21:33 +0100 Subject: Port to svelte --- lib/rules/mask.js | 51 --------------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 lib/rules/mask.js (limited to 'lib/rules/mask.js') diff --git a/lib/rules/mask.js b/lib/rules/mask.js deleted file mode 100644 index 1e82959..0000000 --- a/lib/rules/mask.js +++ /dev/null @@ -1,51 +0,0 @@ -const internals ={ - - masks: [ - 'HTML', - 'FFP4', - 'Leather', - 'Denim', - 'Pink', - 'RSVP', - 'TBD', - 'Quantum', - 'Medical', - 'GMO', - 'FFP9', - 'FFP2.5', - 'KN96', - 'France98', - 'Mesh', - ], - - conditions: [ - 'when dancing', - 'at all times', - 'in bed', - 'outdoors', - 'when running', - 'when driving', - 'when cycling', - 'in restaurants', - 'in pools', - 'in small groups', - 'at 3pm', - 'at 5pm', - 'when nobody is looking', - 'around the police', - 'when speaking', - 'while chewing gum', - 'while eating bread', - ] -}; - -module.exports = () => { - - const mask = internals.masks[Math.floor(Math.random() * internals.masks.length)]; - const condition = internals.conditions[Math.floor(Math.random() * internals.conditions.length)]; - - return { - emoji: '😷', - text: `${mask} masks must be worn ${condition}` - }; -} -- cgit