diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-04-04 01:02:37 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-04-04 01:02:37 +0200 |
| commit | f331d8dc9568d3db8dcaa9958250f6e6664548d3 (patch) | |
| tree | 5c291f08730678101ccb77945bf1a546b938d007 /rules/group.js | |
| parent | 920e58a2d57f7999d55c43829ffcd28cfe6b6952 (diff) | |
Move rules to lib
Diffstat (limited to 'rules/group.js')
| -rw-r--r-- | rules/group.js | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/rules/group.js b/rules/group.js deleted file mode 100644 index 909c378..0000000 --- a/rules/group.js +++ /dev/null @@ -1,51 +0,0 @@ -const internals ={ - - groups: [ - 'teenagers', - 'influencers', - 'vegans', - 'tik-tok users', - 'lactose intolerants', - 'households', - 'ice cream vendors', - 'babies', - 'police officers', - 'drug dealers', - 'tech workers', - 'cryptocurrency miners', - 'mexicans', - 'smokers', - 'drug users', - 'octogenarians', - 'public officials', - 'atheists', - 'god fearing parishioners', - 'b-list actors', - 'jugglers', - 'seagulls', - 'lighthouse operators', - 'tram drivers', - 'psychics', - 'magicians', - 'classically trained musicians', - 'food delivery drivers', - 'librarians', - 'doctors', - 'vaccinated cats', - 'balloon artists' - ], -}; - -module.exports = () => { - - const countA = Math.floor(Math.random() * 8) + 2; - const magnitude = Math.random() > 0.5 ? 99 : 5; - const countB = Math.floor(Math.random() * magnitude) + 1; - const groupA = internals.groups[Math.floor(Math.random() * internals.groups.length)]; - const groupB = internals.groups[Math.floor(Math.random() * internals.groups.length)]; - - return { - emoji: '👨', - text: `No more than ${countA} ${groupA} + ${countB} ${groupB} are allowed to meet` - }; -} |