Created
January 22, 2015 15:00
-
-
Save mbertheau/824e23a31b58624daf31 to your computer and use it in GitHub Desktop.
hubot cron not working
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
CronJob = require('cron').CronJob | |
new CronJob('* * * * * *', () -> | |
console.log "tick" | |
return | |
, null, true, "Europe/Berlin") | |
module.exports = (robot) -> | |
tz = 'Europe/Berlin' | |
new CronJob('* * * * * *', testBuild, null, true, tz) | |
testBuild = -> | |
console.log "tack" | |
return | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment