Created
March 25, 2019 07:50
-
-
Save prashanth-sams/c217c5cdb71b986270e0e9719aa84eff to your computer and use it in GitHub Desktop.
Hubot - Cron job 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const cron = require("node-cron"); | |
module.exports = robot => { | |
new cron.schedule("*/1 * * * *", function() { | |
robot.messageRoom( | |
"website", `I am running once in every 1 minute` | |
) | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment