...
 
Commits (2)
{
"name": "hubot-human-goodmorning",
"version": "0.1.0",
"version": "0.1.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
......
{
"name": "hubot-human-goodmorning",
"description": "A hubot scripts that says goodmorning only once and after somebody else has said it",
"version": "0.1.0",
"version": "0.1.1",
"author": "Farid Nouri Neshat <Farid@Olindata.com>",
"license": "MIT",
"keywords": [
......
......@@ -53,7 +53,7 @@ module.exports = function (robot) {
return;
}
}
const day = Date.now() / ONE_DAY;
const day = Math.floor(Date.now() / ONE_DAY);
if (day > lastTime && isMorning()) {
setTimeout(() => {
let message = random(mornings);
......