Commit 1101d3fa authored by Farid Neshat's avatar Farid Neshat

Fix that its saying good morning multiple times

parent f08e4760
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment