Last active
February 29, 2016 23:24
-
-
Save hidepin/b7394fedf2c9ba793f75 to your computer and use it in GitHub Desktop.
hubot
This file contains 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
https://github.com/github/hubot-scripts | |
https://github.com/github/hubot/blob/master/docs/adapters.md | |
cron | |
``` | |
cat scripts/cron.coffee [~/hubot/hubot] | |
# Description: | |
# cron | |
# | |
cron = require('cron').CronJob | |
module.exports = (robot) -> | |
job = new cron '* * * * *', -> | |
robot.send room: """ | |
Good Night | |
""" | |
job.start() | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment