Skip to content

Commit

Permalink
Eightball timerange extended to 2033 (was 1993)
Browse files Browse the repository at this point in the history
  • Loading branch information
kathinka-bot committed Aug 27, 2017
1 parent 01a271c commit ed36069
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Interactions/Eightball.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Eightball.prototype = {
case "what":
return "That";
case "when":
return new Date(Math.floor(rng*(1475245914029)-(1475245914029)/2)).toLocaleString('en-GB', {timeZone : 'Europe/Amsterdam'});
return new Date(Math.floor(rng*2000000000000)).toLocaleString('en-GB', {timeZone : 'Europe/Amsterdam'});
case "why":
return "Because 3.";
case "where":
Expand All @@ -79,7 +79,7 @@ Eightball.prototype = {
case "wat":
return "Dat.";
case "wanneer":
return new Date(Math.floor(rng*(1475245914029)-(1475245914029)/2)).toLocaleString('nl-NL', {timeZone : 'Europe/Amsterdam'});
return new Date(Math.floor(rng*2000000000000)).toLocaleString('nl-NL', {timeZone : 'Europe/Amsterdam'});
case "waarom":
return "Daarom";
case "waar":
Expand Down
4 changes: 2 additions & 2 deletions test/Interactions/Eightball_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ describe("The eightball interaction", function() {
];
var answerlist = [
"That",
"3/29/1993, 1:24:55 PM",
"3/12/2033, 11:52:14 PM",
"Because 3.",
"(-43.386939019432766, 178.70983782660068) (http://maps.google.com?q=-43.386939019432766,178.70983782660068)",
"Just... you know..",
"Me?",
"The right one.",
"Dat.",
"7/26/1959, 7:41:10 AM",
"7/17/1987, 1:59:43 PM",
"Daarom",
"(84.79808211327745, -133.7674144194062) (http://maps.google.com?q=84.79808211327745,-133.7674144194062)",
"Gewoon...",
Expand Down

0 comments on commit ed36069

Please sign in to comment.