helper.js 230 B

12345678
  1. exports.random = () => Math.floor(Math.random() * 1e4) + 1;
  2. exports.parse = queries => Math.min(Math.max(parseInt(queries, 10) || 1, 1), 500);
  3. exports.fortune = {
  4. id: 0,
  5. message: 'Additional fortune added at request time.'
  6. };