dist/sentence_mgr.js
function datePredict() {
  var daysAhead = Math.floor(Math.random() * 5) + 2;

  var day = new Date();
  day.setDate(day.getDate() + daysAhead);
  var monthStr = (0, _dateformat2.default)(day, "mmmm");
  var dayStr = (0, _dateformat2.default)(day, "d");

  var rnum = Math.floor(Math.random() * 10);
  var str = void 0;
  if (rnum <= 4) {
    str = monthStr + ' ' + dayStr + ' will be an important day for you';
  } else if (rnum <= 7) {
    str = 'Interesting things await you on ' + monthStr + ' ' + dayStr;
  } else {
    str = 'The events of ' + monthStr + ' ' + dayStr + ' have the potential to change your life.';
  }
  return nu.sentenceCase(str);
}
function datePredict() {
  var daysAhead = Math.floor(Math.random() * 5) + 2;

  var day = new Date();
  day.setDate(day.getDate() + daysAhead);
  var monthStr = (0, _dateformat2.default)(day, "mmmm");
  var dayStr = (0, _dateformat2.default)(day, "d");

  var rnum = Math.floor(Math.random() * 10);
  var str = void 0;
  if (rnum <= 4) {
    str = monthStr + ' ' + dayStr + ' will be an important day for you';
  } else if (rnum <= 7) {
    str = 'Interesting things await you on ' + monthStr + ' ' + dayStr;
  } else {
    str = 'The events of ' + monthStr + ' ' + dayStr + ' have the potential to change your life.';
  }
  return nu.sentenceCase(str);
}
function datePredict ( ) { var daysAhead = Math . floor ( Math . random ( ) * 5 ) + 2 ; var day = new Date ( ) ; day . setDate ( day . getDate ( ) + daysAhead ) ; var monthStr = ( 0 , _dateformat2 . default ) ( day , "mmmm" ) ; var dayStr = ( 0 , _dateformat2 . default ) ( day , "d" ) ; var rnum = Math . floor ( Math . random ( ) * 10 ) ; var str = void 0 ; if ( rnum <= 4 ) { str = monthStr + ' ' + dayStr + ' will be an important day for you' ; } else if ( rnum <= 7 ) { str = 'Interesting things await you on ' + monthStr + ' ' + dayStr ; } else { str = 'The events of ' + monthStr + ' ' + dayStr + ' have the potential to change your life.' ; } return nu . sentenceCase ( str ) ; }
Generate a random prediction sentence containing a date.
@returns {*}
Generate a random prediction sentence containing a date .